How to combine a scrollview with a collapsable modal? #3875
Unanswered
Snickleblor
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to combine a pan gesture with a modal to make it closable when I swipe downwards (this should only be true if the offset in the y direction is zero or atleast close to zero, and if the path is postive, meaning it is a swipe down gesture) and also make it compatible with the ScrollView. First I wrapped the scrollView in an extra GestureDetector, and used Native() to add it into the gesture handler system. Then added a state that switches between the two gestures. The issue I am getting is that I need to swipe down a few times to even activate the scrollGesture, and after scrolling it stops working, and I need swipe down again for it to work. Is this the right approach in implementing this? Or is this a bug?
Ask if I need to explain anything. Sincerly, Blor.
Beta Was this translation helpful? Give feedback.
All reactions