react-native-ios-context-menu icon indicating copy to clipboard operation
react-native-ios-context-menu copied to clipboard

Android build native module missing

Open zeta-gc opened this issue 1 year ago • 9 comments

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.registerComponent wasn't called., js engine: hermes

How can i fix that?

zeta-gc avatar Dec 11 '23 22:12 zeta-gc

+1

andresribeiro avatar May 12 '24 17:05 andresribeiro

Any update ?

AurelienBdl avatar May 23 '24 07:05 AurelienBdl

+1

ihdev524 avatar May 30 '24 14:05 ihdev524

I have a similar issue as well with expo SDK version 50.0.19 -- works fine on iOS but breaks on android.

sinarck avatar May 31 '24 05:05 sinarck

and I just gave another shot to Expo and they blew it .... continue work with one and only RN Cli

joksa avatar Jun 04 '24 07:06 joksa

+1. This shows me an error in iOS Simulator too. Using this on an EAS Build

ICGVIP avatar Jun 20 '24 19:06 ICGVIP

Workaround: use Platform-Specific Code and create Menu.android.tsx and Menu.ios.tsx

andresribeiro avatar Jul 14 '24 19:07 andresribeiro