Skip to content

Expo 51 and Rn 74.1 fails at runtime #809

Open

Description

@geetee24

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

Activity

  1. alantoa commented on May 22, 2024

    @alantoa
    Contributor

    What about using v1.0.2?

  2. jeremiasrg commented on Jun 13, 2024

    @jeremiasrg

    Same error here

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

  3. raijv-p commented on Jun 18, 2024

    @raijv-p

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

  4. wodin commented on Jun 25, 2024

    @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/
    
  5. Aycom366 commented on Jan 8, 2025

    @Aycom366

    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
    
  6. astriskit commented on Jan 10, 2025

    @astriskit

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions