dominicstop / react-native-ios-context-menu

A react-native component to use context menu's (UIMenu) on iOS 13/14+

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Compatibility w/ non-Expo projects

go-sean-go opened this issue · comments

Starting in v2.x, is this project no longer compatible with non-Expo projects...?

What are the install/upgrade/etc steps required for projects that are not using Expo?

The docs do not explain it at current - other than to say it uses Expo-Modules, which is not familiar to non-Expo users (or at least not to me!).

Hey, agreed that the docs should explain this better.

This link should explain it. TLDR: npx install-expo-modules@latest should be all you need.

Hi I already tried it using install-expo-modules based on @nandorojo recommendations

Follow this step

npx install-expo-modules

Install babel transform-export-namespace

yarn add @babel/plugin-transform-export-namespace-from --dev

update your babel.config.js

module.exports = {
  presets: ['module:@react-native/babel-preset'],
  plugins: ['@babel/plugin-transform-export-namespace-from'],
};

And it work on React Native CLI 0.74.1

image