React-native-gesture-handler: [Android] [RN 0.56.0] Invariant Violation: requireNativeComponent: "GestureHandlerRootView" was not found in the UIManager.

Created on 5 Jul 2018  Â·  8Comments  Â·  Source: software-mansion/react-native-gesture-handler

I'm getting the following error when starting my App on Android (in Debug) with RN 0.56.0:

error

Is anyone else seeing this error, or has seen it before?

Some additional information

I'm using react-native-navigation and followed the guide to replace my Views with gestureHandlerRootHOC(…) in Navigation.registerComponent(…).

I'm starting a tab-based App (Navigation.startTabBasedApp(…)), where Profile is the last tab. If I remove Profile, the now last tab will be where the error occurs.

I made Profile render just a single View. If there are nested Views, the Error occurs in the first Component without children.

Most helpful comment

Ah, looks like @mars-lan is right. We should revert the change that removed view manager for GestureHandlerRootView. Should have a fix ready shortly

All 8 comments

@kmagiera

https://github.com/kmagiera/react-native-gesture-handler/pull/199 seems to be the culprit. Still need a ViewManager to expose RNGestureHandlerRootView to JS side.

same error on iOS
hasn't anybody solved this issue yet ?

Ah, looks like @mars-lan is right. We should revert the change that removed view manager for GestureHandlerRootView. Should have a fix ready shortly

Thanks @VSchlattinger for reporting and @mars-lan for taking your tie and digging up the solution.

I submitted a PR with a fix here #245 – has anyone here have some time to test it?

@kmagiera Thanks! I will test tomorrow and report back.

@kmagiera thanks for the quick turnaround. I can confirmed that the error has been fixed.

I can also confirm that the problem is fixed with https://github.com/kmagiera/react-native-gesture-handler/pull/245. 🎉

Just published 1.0.6 that includes this fix. Thanks everyone for reporting and testing the fix!

Was this page helpful?
0 / 5 - 0 ratings