Closed jxshco closed 4 years ago
Hi @jxshco! Thanks for the heads up and sorry for the delay: bug fixed for both closeModals()
and closeModal()
in 71425aea7addae79d08c5f6103951a32c80a5a1a. Please test it in react-native-modalfy@1.0.1
and feel free to re-open this issue if needed!
Works perfectly, thanks @CharlesMangwa
Say if I call openModal a few times e.g.
then use currentModal to then close the pages
This is because currentModal in the state is not being updated when calling closeModals. I've added a temp fix for my use-case at the minute over here: https://github.com/jxshco/react-native-modalfy as an example.