menu icon indicating copy to clipboard operation
menu copied to clipboard

Expo 51 and Rn 74.1 fails at runtime

Open geetee24 opened this issue 1 year ago • 6 comments

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

geetee24 avatar May 15 '24 03:05 geetee24

What about using v1.0.2?

alantoa avatar May 22 '24 21:05 alantoa

Same error here

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

jeremiasrg avatar Jun 13 '24 10:06 jeremiasrg

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

raijv-p avatar Jun 18 '24 17:06 raijv-p

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/

wodin avatar Jun 25 '24 14:06 wodin

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

Aycom366 avatar Jan 08 '25 20:01 Aycom366

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)

astriskit avatar Jan 10 '25 06:01 astriskit