react-native-gesture-handler: PanGestureHandler doesn't work with WebView as child
Hi, I’m working only on iOS right now and when I put a WebView
(react-native-webview) in a PanGestureHandler
, I get no response from onGestureEvent
.
If I put a normal, empty View
inside, I get data from onGestureEvent
react-native v0.59.9 react-native-gesture-handler v1.3.0
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Reactions: 3
- Comments: 16 (3 by maintainers)
ring ring 2023
Has anyone managed to get this working? I’m trying to add a WebView to the BottomSheet example but haven’t had any luck.
Seeing same issue with WebView as child for PanGestureHandler, getting no response from onGestureEvent or onHandlerStateChange. Wrapping in View does not work for me.
Anyone figure a solution to this?
yes, me too. I tried any way to handle this but i can’t find a solution
The flex:1 workaround seems to work for iOS but not for Android. Although we can add a FlingGestureHandler a single-tap does not work as expected on android. The webview will focus links but will not follow them when tapping. Do you have a workaround for this as well?