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

Expo 51 and Rn 74.1 fails at runtime #809

Open
geetee24 opened this issue May 15, 2024 · 6 comments
Open

Expo 51 and Rn 74.1 fails at runtime #809

geetee24 opened this issue May 15, 2024 · 6 comments

Comments

@geetee24
Copy link

installed "@react-native-menu/menu": "0.9.1" worked great for months

updated expo 49 to 51
did pod install on rnmm 0.9.1

at runtime, get message Invariant Violation: requireNativeComponent: "RCTUIMenu" was not found in the UIManager.

also what was the breaking changes from 0.9.1 to 1.n.n? missing migration guide

@alantoa
Copy link
Contributor

alantoa commented May 22, 2024

What about using v1.0.2?

@jeremiasrg
Copy link

Same error here

Invariant Violation: requireNativeComponent: "MenuView" was not found in the UIManager.

@raijv-p
Copy link

raijv-p commented Jun 18, 2024

Any update on this? I am on expo 51 and got the same "MenuView" was not found in the UIManager error

@wodin
Copy link

wodin commented Jun 25, 2024

Any update on this? I am on expo 51 and got the same "MenuView" was not found in the UIManager error

Make sure you create a development build of your Expo app after installing @react-native-menu/menu
If you get this error after upgrading to a later Expo SDK, you can try deleting your android and ios directories. If you add the following to your .gitignore file, then the Expo build servers will be able to generate them on the fly during the build process:

/android/
/ios/

@Aycom366
Copy link

Aycom366 commented Jan 8, 2025

Any update on this? I am on expo 51 and got the same "MenuView" was not found in the UIManager error

Make sure you create a development build of your Expo app after installing @react-native-menu/menu If you get this error after upgrading to a later Expo SDK, you can try deleting your android and ios directories. If you add the following to your .gitignore file, then the Expo build servers will be able to generate them on the fly during the build process:

/android/
/ios/

I'm on expo 51 and my build is failing because of this package. I recently just upgraded from 50 to 51. Please find the error below

Task :react-native-menu_menu:compileDebugKotlin FAILED
e: file:///Users/wizzy/Desktop/Code/cycle/Cyclekit-Vendor/node_modules/@react-native-menu/menu/android/src/main/java/com/reactnativemenu/MenuViewManager.kd
e: file:///Users/wizzy/Desktop/Code/cycle/Cyclekit-Vendor/node_modules/@react-native-menu/menu/android/src/main/java/com/reactnativemenu/MenuViewManager.kd


FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':react-native-menu_menu:compileDebugKotlin'.
> A failure occurred while executing org.jetbrains.kotlin.compilerRunner.GradleCompilerRunnerWithWorkers$GradleKotlinCompilerWorkAction
   > Compilation error. See log for more details

@astriskit
Copy link

astriskit commented Jan 10, 2025

Running ok while trying using the latest expo and latest package -
"@react-native-menu/menu": "^1.2.0", "expo": "~52.0.24",

  • Successfully created dev-build using eas build ios(locally) and android(eas-servers)
  • Successfully ran the "usage" code in the readme.md.
  • On running the dev-client on both platforms - the menu opened as expected. IOS - long-press; Android - press;
  • Clicking on "Show Menu .." button produced error, even on Android(error on android - Error: Exception in HostFunction: com.facebook.react.bridge.UnexpectedNativeTypeException: expected Array, got a null)

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