question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

PanGestureHandler doesn't work with WebView as child

See original GitHub issue

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

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:3
  • Comments:15 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
mikoscommented, Jan 23, 2021

Has anyone managed to get this working? I’m trying to add a WebView to the BottomSheet example but haven’t had any luck.

3reactions
pjay79commented, Jan 15, 2020

Seeing same issue with WebView as child for PanGestureHandler, getting no response from onGestureEvent or onHandlerStateChange. Wrapping in View does not work for me.

Read more comments on GitHub >

github_iconTop Results From Across the Web

[Solved]-React Native pan gesture handler not working-React ...
Coding example for the question React Native pan gesture handler not working-React Native.
Read more >
react native - WebView - center Image Content - Stack Overflow
So, I am trying to get this result using WebView. ... mainContainer }> <WebView style = { styles. ... I have similar problem....
Read more >
react-native-gesture-handler - npm
Experimental implementation of a new declarative API for gesture handling in react-native. Latest version: 2.7.0, last published: 5 days ago ...
Read more >
UIGestureRecognizer Tutorial: Getting Started
In this tutorial, you'll learn how to configure UIGestureRecognizer objects and how to create custom recognizers in code.
Read more >
react-native-gesture-handler - Bountysource
Hi ! I have a little issue on Android, onGestureEvent is not trigger when GestureHandler components is on a modal on Android. When...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found