React-native-gesture-handler: Redirect pan gesture event to ScrollView

Created on 6 Apr 2019  路  2Comments  路  Source: software-mansion/react-native-gesture-handler

I have a ScrollView that takes up a portion of the screen. I am trying to respond to pan gestures from any place on the screen by scrolling the ScrollView (but make it happen automatically on the native side, without manually scrolling in JS). So in other words, I am trying to capture all pan gestures and redirect them to the ScrollView. Is it possible to accomplish this with react-native-gesture-handler?

Gesture handlers Question

Most helpful comment

This would also be interesting since it would allow a PanGestureHandler (to capture touch events) to be used with a FlatList (to efficiently render a large list).

All 2 comments

This would also be interesting since it would allow a PanGestureHandler (to capture touch events) to be used with a FlatList (to efficiently render a large list).

My issue is actually related to #420, I'm trying to achieve similar functionality with this.

Was this page helpful?
0 / 5 - 0 ratings