Closed enzobocalon closed 5 months ago
This is a problem that raised my attention as mentioned by a reddit user, the problem with swipes is that they are nothing but pan gestures with a set of let's call them "boundaries" and Gesture Handler by being nested within the modal will take a higher priority over the modal's touches.
At this precise moment I can not offer you a solution, however this will be addressed in the next release in the form of a onSwipe
property capable of detecting all four directions.
Just Released version 2.0.1
, give it a try it does have the new onSwipe
property you could use for this use case.
Just Released version
2.0.1
, give it a try it does the newonSwipe
property you could use for this use case.
Working flawless, thank you. Just a question to know if its possible, since I don't know too much of react native. Can I achieve an animation similar to Twitter/Facebook dismiss? When I scroll down it starts to move down and if I scroll pass a threshold, then it finishes the animation and closes?
Again, thank you so much for the new onSwipe property
@enzobocalon It's difficult to tell for me as I don't have such applications, if you can provide a video of what's that you're actively trying to achieve I may give you a possible solution if any.
I see what you mean, that's definitively a common pattern among mobile apps and sadly for the moment that's something I have never done myself in previous projects in contrast to all the other features the library provides.
It may require some research and experimentation from my part, and at least for the moment I'd like to rest for a while from this library, I'm pretty burn out from all the changes in this latest release, nonetheless this may be doable.
I understand. Again, thank you so much for the changes, specially for the onSwipe prop.
Sorry sent you the wrong release, it was 2.1.0, but since it introduced a new bug by accident install 2.1.1 instead.
Working perfect. Thank you so much for your efforts
Summary
I've been trying to use it with react-native-modal to achieve the same result as the Twitter/Facebook Gallery, where I can close modal by swiping down. But every time I try to use it I end up having a conflict between swipes. Is there a way to fix it? Or even achieve the result using react-native's own modal? Ty
Currently code, using the example provided