- 
          
- 
                Notifications
    You must be signed in to change notification settings 
- Fork 1k
Description
Hi all,
I have a Animated.View wrapped in a PanGestureHandler. It's a swipeable component which swipes in the horizontal direction. I have a list that is rendered inside a flatlist (previously a scrollview), and every item in the flatlist is wrapped with this PanGestureHandler component. The thing I want to achieve is that every item in the flatlist should be swipeable.
The swipeable component works, but the flatlist doesn't scroll. The same behaviour occurs with a scrollview. I can swipe the components but I can't scroll the flatlist.
I've found a (possible?) solution by setting activeOffsetX to 0 and activeOffsetY to [-500, 500], this way within the Y range of -500, 500, the PanGestureHandler is not activated but the flatlist is.
Problem is: every item in the flatlist has a different height, they are not all the same. For now, -500, 500 does the trick but the problem is I will possible get items in the list that have a height > 500.
a) Is this the correct solution for this problem (using the activeOffsetY)?
b) How can I dynamically set the activeOffsetY range for each individual component?