Bottom Sheet using PanGesture with nested ScrollView #1836
Unanswered
Pietro-Putelli
asked this question in
Q&A
Replies: 2 comments 5 replies
-
Hi! It's possible that the new API in Gesture Handler 2 with |
Beta Was this translation helpful? Give feedback.
5 replies
-
How do we implement this in the new api |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I'm working on a classic bottom sheet component containing scrollview, and I want to achieve the panGesture dismiss modal over the scrollview, here's my code:
Now it works fine, but when I scroll up and
waitFor
is false, thePanGestureHandler
is triggered and only when the gesture is performed the second time it actually waitFor scroll view, it's obvious because the waitFor is set (inonActive
) when the pan gesture is performed.It is a common logic in application, so is there an easiest way to achieve this?
Here question I've referred to, but can't get the solution: #420
I've also try to wrap
ScrollView
insideNativeViewGestureHandler
but I haven't been able to understand what actually do this component, and there's no there's no trace of it in official doc.Thank you
Beta Was this translation helpful? Give feedback.
All reactions