react-native-gesture-handler icon indicating copy to clipboard operation
react-native-gesture-handler copied to clipboard

Invariant Violation: "RNGestureHandlerRootView"

Open GeeteshSingh opened this issue 4 years ago • 2 comments

I am making a basic news app with fetching API. It is working in IOS simulator but it’s not working in android. Currently I am using expo V5.2.0 and the error is: This error is located at: in RNGestureHandlerRootView (created by GestureHandlerRootView) in GestureHandlerRootView (created by StackView) in StackView (created by StackNavigator) in Unknown (created by StackNavigator) in StackNavigator (created by RootStack) in RootStack (created by App) in EnsureSingleNavigator in BaseNavigationContainer in ThemeProvider in NavigationContainerInner (created by App) in App (created by ExpoRoot) in ExpoRoot in RCTView (created by View) in View (created by AppContainer) in RCTView (created by View) in View (created by AppContainer) in AppContainer at node_modules/react-native/Libraries/Core/ExceptionsManager.js:104:6 in reportException at node_modules/react-native/Libraries/Core/ExceptionsManager.js:172:19 in handleException at node_modules/react-native/Libraries/Core/setUpErrorHandling.js:24:6 in handleError at node_modules/expo-error-recovery/build/ErrorRecovery.fx.js:12:21 in ErrorUtils.setGlobalHandler$argument_0

Invariant Violation: requireNativeComponent: "RNGestureHandlerRootView" was not found in the UIManager. I don’t know why this is happening but I want to make my App work on cross platforms.

Platforms

  • [Yes] iOS
  • [Yes] Android
  • [No] Web

Screenshots

  1. on Iphone 13: image
  2. On expo go app on android: image

Steps To Reproduce

  1. No steps just following documentation and some react native frameworks

Expected behavior

Actual behavior

Working on iPhone but not in android.

Snack or minimal code example

https://github.com/GeeteshSingh/LawLive

Package versions

  • React: "react": "17.0.1",
  • React Native: "react-native": "0.64.3",
  • React Native Gesture Handler: "react-native-gesture-handler": "^2.3.0",
  • React Native Reanimated: "react-native-reanimated": "^2.4.1",

GeeteshSingh avatar Mar 04 '22 19:03 GeeteshSingh

Hey! 👋

It looks like you've omitted a few important sections from the issue template.

Please complete Description section.

github-actions[bot] avatar Mar 04 '22 19:03 github-actions[bot]

deleted node_modules then used expo install. The issue was due to the expo version not supporting new react-navigation and native versions.

GeeteshSingh avatar Mar 05 '22 19:03 GeeteshSingh