jeremybarbet / react-native-modalize

A highly customizable modal/bottom sheet that loves scrolling content.
https://jeremybarbet.github.io/react-native-modalize
MIT License
2.84k stars 298 forks source link

Return to snap after having made modal full height #284

Open Tycholiz opened 4 years ago

Tycholiz commented 4 years ago

Not sure if this is a feature available in the library already or not, but here goes.

I wonder if there is capability to be able to return to the snap points as we are in the process of dismissing the modal. In other words, can we return to the initial snap point after we have already made the modal to its full height?

jeremybarbet commented 3 years ago

Hey!

Are you thinking of a way with a function? e.g. toSnapPoint(200) or when using the pan gesture event?

Tycholiz commented 3 years ago

Hey Jeremy, I'm actually not sure, I'm not that well versed with PanGesture, or any React Native animations for that matter.

Is that something you might recommend? TBH I have moved off of this problem a while ago, but is still something on my radar. The Wikipedia app does this well (for when you want to save a particular page)

eladgel commented 3 years ago

@jeremybarbet using pan gesture events

calz10 commented 3 years ago

hi @Tycholiz , would like to know if you have managed to complete this feature? thanks. In my case, I would like to bring back the modal on its initial height when it reaches its top position then the user triggers an event onOverlayPress. :)

Tycholiz commented 3 years ago

nope, unfortunately never could get this to work properly. I haven't had a look at alternatives either I'm afraid.

calz10 commented 3 years ago

hi @jeremybarbet , have seen that you've added new param in onClose dest, is it related to this issue? have tried it yet its hard as it also triggers onClose method, please note that im using 'default' and not alwaysOpen, from full modal when backdrop pressed should return to its initial snapoint thank you 🙏