-
-
Notifications
You must be signed in to change notification settings - Fork 788
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
[Bug]: [v5]GestureDetector must be used as a descendant of GestureHandlerRootView #1979
Comments
I got it too. any solution? Update:- I missed one step to wrap app with these
Now working fine |
I have the same problem |
@fabricioferiozzi96 Your |
i have updated the docs to include |
@gorhom @rajangargsmartdata thank you! works fine in all plataforms, but the behavior is different nonetheless. Without GestureHandlerRootView Grabacion.de.pantalla.2024-10-21.a.la.s.12.07.51.p.m.movWith GestureHandlerRootView: Grabacion.de.pantalla.2024-10-21.a.la.s.12.04.25.p.m.movIf I change the color, it's the same because the GestureHandlerRootView container doesn't leave until bottomSheetRef.current?.close(); event finishes. |
@gorhom thanks for all the work on the library! I just stumbled across this error and I believe it was because in the modal usage example the order of the |
Version
v5
Reanimated Version
v3
Gesture Handler Version
v2
Platforms
iOS, Android
What happened?
Error: GestureDetector must be used as a descendant of GestureHandlerRootView. Otherwise the gestures will not be recognized. See https://docs.swmansion.com/react-native-gesture-handler/docs/installation for more details.
Plataform: IOS, Android
On Web works fine
Reproduction steps
Reproduction sample
https://snack.expo.dev/@franamu/bottom-sheet---issue-reproduction-template
Relevant log output
GestureDetector must be used as a descendant of GestureHandlerRootView. Otherwise the gestures will not be recognized. See https://docs.swmansion.com/react-native-gesture-handler/docs/installation for more details.
On web works fine:
The text was updated successfully, but these errors were encountered: