Hi, thank you for your work on this great project!
With version 3.5.3 we are unable to open a modal from within the callback for closeAllModals unless you use a timeout hack.
Here is a snippet that illustrates the problem:
closeAllModals(() => {
// openModal does not work here in the callback
openModal(name, options)
// It does work if you wrap openModal in a micro timeout.
// There seems to be a race condition happening somewhere.
})
I think this affects the callback for closeModal in the same way also.
Hi, thank you for your work on this great project!
With version 3.5.3 we are unable to open a modal from within the callback for
closeAllModals
unless you use a timeout hack.Here is a snippet that illustrates the problem:
I think this affects the callback for
closeModal
in the same way also.I forked the repo here and added this snippet to the example app to illustrate the issue - https://github.com/rossmartin/react-native-modalfy/commit/a7a2abef15e498ad92795c9e3d7f04cc8874ef63
You should be able to reproduce the issue by the snippet or the forked example app provided.