react-native-ios-context-menu
react-native-ios-context-menu copied to clipboard
Android build native module missing
Hello, i recently updated the package from 1.6 to latest release for presentMenu function, im with expo. With ios everything works fine, but when i build for android i get an error.
ERROR Error: Cannot find native module 'RNIContextMenuView', js engine: hermes ERROR Invariant Violation: "main" has not been registered. This can happen if:
- Metro (the local dev server) is run from the wrong folder. Check if Metro is running, stop it and restart it in the current p roject.
- A module failed to load due to an error and
AppRegistry.registerComponentwasn't called., js engine: hermes
How can i fix that?
+1
Any update ?
+1
I have a similar issue as well with expo SDK version 50.0.19 -- works fine on iOS but breaks on android.
and I just gave another shot to Expo and they blew it .... continue work with one and only RN Cli
+1. This shows me an error in iOS Simulator too. Using this on an EAS Build
Workaround: use Platform-Specific Code and create Menu.android.tsx and Menu.ios.tsx