Receiving simultaneous ScrollView and GestureHandler events
See original GitHub issueIs it possible to receive events for a handler, e.g. PanGestureHandler, and a ScrollView at the same time? I’m finding that a ScrollView fully consumes a touch event, even with simultaneousHandlers set, so that a gesture handler that contains the ScrollView never receives the touch as long as the ScrollView is enabled.
Issue Analytics
- State:
- Created 5 years ago
- Comments:13
Top Results From Across the Web
Cross handler interactions | React Native Gesture Handler
Gesture handlers can "communicate" with each other to support complex gestures and control how they activate in certain scenarios.
Read more >How can I use react-native-gesture-handler to handle react ...
To reiterate, what I wanted to do was to have the touch events of a ScrollView work simultaneously with touch events from a ......
Read more >Gesture Responder System - React Native
There can also be multiple simultaneous touches. ... target - The node id of the element receiving the touch event; timestamp - A...
Read more >ScrollView from scratch with PanGestureHandler in ... - YouTube
In this tutorial we'll learn how to recreate the scroll behavior with just a PanGestureHandler component (from react-native- gesture-handler ...
Read more >DragGesture in SwiftUI ScrollView … | Apple Developer Forums
The gesture's events properly fire when you drag vertically, but when you drag horizontally (matching the direction of the scroll view) only the...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

There is no documentation about
NativeViewGestureHandleron official site, but the only mention of it says that you can useFlatListfromreact-native-gesture-handlerwithsimultaneousHandlersinstead of wrapping it insideNativeViewGestureHandler.But you cannot
So you still should use
FlatListONLY fromreact-nativeand wrap it inNativeViewGestureHandler:There is no
FlatListin current documentation from this repo. But it was added in this PR. IDK@damikdk thanks, your research helped me.
I’d add one caveat though. For anybody planning to use an
Animated.eventfor aPanGestureHandleronHandlerStateChangefor example. In that case one must wrap aNativeViewGestureHandlerinside anAnimated.View. Otherwise the app will be failing with an errorNesting touch handlers with native animated driver is not supported yet.Credits: #71
Just in case, here’s a full example: