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

Invariant Violation: requireNativeComponent: "ContextMenu" was not found in the UIManager. #77

Open
fernando-ropero-akimad opened this issue Mar 14, 2023 · 17 comments

Comments

@fernando-ropero-akimad
Copy link

When using this component I encounter the following error:

Captura de pantalla 2023-03-13 a la(s) 21 16 16

ios works fine but android gives error.

I've tried:

Restarting computer
Re-adding and re installing with yarn (I don't use npm)
A bunch of stuff with pods I can't even remember

"react-native-context-menu-view": "^1.9.1"
"react-native": "0.69.7",

@CavidM
Copy link

CavidM commented Jun 6, 2023

Same issue with react-native 0.71.8

@mimo-10
Copy link

mimo-10 commented Sep 17, 2023

same issue now it is 0.78

@AlanHazel
Copy link

For Expo users: I was able to solve this by simply rebuilding in Expo.

@williamlmao
Copy link

williamlmao commented Sep 29, 2023

Same issue - @AlanHazel how did you rebuild expo? expo start with the --clear flag?

@itemsCenter
Copy link

clearing the cache build doesn't help in expo

@mpiannucci
Copy link
Owner

I updated the example app to the latest react native and built fresh and I am not seeing the error unfortunately

@PMVPYW
Copy link

PMVPYW commented Dec 8, 2023

Can it be the android version?

@mpiannucci
Copy link
Owner

I had this issue at one point on android, and running the following cleared it up:

rm -rf node_modules
cd android
./gradlew clean
cd ../
yarn install
react-native run-android --reset-cache

@tiagodocusse
Copy link

Same problem with Expo here. My versions: This lib is 1.14.1, Expo v. 49.0.21, React Native v. 0.72.6.

Tried cleaning Expo cache, expo install --check, start with npx expo start --clear, nothing worked. I get the same error both in Android and iOS.

@nico-cohesion
Copy link

nico-cohesion commented Dec 28, 2023

@mpiannucci please have a look, I am also getting the same issue.

"expo": "~49.0.21"
"react": "18.2.0"
"react-native": "0.72.6"
"react-native-context-menu-view": "^1.14.1"

@jayan2019
Copy link

jayan2019 commented Mar 5, 2024

I also faced this issue in expo and when i run with development build, i can able to use the component without any error.
If anyone facing same issue refer this expo documentation

@arkabhowmik
Copy link

arkabhowmik commented Mar 13, 2024

For those who are still facing the error on expo, you need to -

  1. Install this library using npm install react-native-context-menu-view --save.
  2. Run eas build --profile development to create a new development build.

@nico-cohesion
Copy link

Also an issue in:
"expo": "51.0.8"
"react-native": "0.74.1"
"react-native-context-menu-view": "^1.16.0"

@stefan-stankovic
Copy link

Has anyone fixed this?

@willashley23
Copy link

Bump. Running into the same issue still. I created a development build, and can get it to run in the simulator using npx expo run:ios, but it doesn't work inside Expo Go. Would really appreciate some help here, it looked really nice in the simulator!

@mpiannucci
Copy link
Owner

I don't think it will ever work in expo go. You need to install the dev build on an actual device

@willashley23
Copy link

Yeah, I realized Expo Go can't render some native components so things like this will only ever work in a dev build.

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