colorfy-software / react-native-modalfy

🥞 Modal citizen of React Native.
https://colorfy-software.gitbook.io/react-native-modalfy
MIT License
1.08k stars 44 forks source link

Request: callback on closing modal #32

Closed callaars closed 2 years ago

callaars commented 3 years ago

The use case for me is that I'd like to perform a function after closing the modal. However if I start the function while the modal is still disappearing, the experience is a jarred closing animation. It would be nice to have a callback that fires when a modal has closed.

e.g.

closeModal(afterCloseCallback)

CharlesMangwa commented 3 years ago

Hi @callaars! Your feedback is totally valid and is actually something I've been facing myself. This feature is currently being considered and should hopefully land in the next release, for all the closing methods. We'll update you asap!

CharlesMangwa commented 2 years ago

Hey @callaars! Thank you for giving us a bit (a lot) of time to look into this. I'm very happy to let you know that actions callbacks are now supported in the new Modal v3 🥳 If you're still using Modalfy, I hope this addresses your needs and will help you!

callaars commented 2 years ago

Thanks @CharlesMangwa !