Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android build native module missing #87

Open
zeta-gc opened this issue Dec 11, 2023 · 7 comments
Open

Android build native module missing #87

zeta-gc opened this issue Dec 11, 2023 · 7 comments

Comments

@zeta-gc
Copy link

zeta-gc commented Dec 11, 2023

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?

@andresribeiro
Copy link

+1

@AurelienBdl
Copy link

Any update ?

@ihdev524
Copy link

+1

@sinarck
Copy link

sinarck commented May 31, 2024

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

@joksa
Copy link

joksa commented Jun 4, 2024

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

@ICGVIP
Copy link

ICGVIP commented Jun 20, 2024

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

@andresribeiro
Copy link

andresribeiro commented Jul 14, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants