Sometimes in our application, we encounter an issue where the callback doesn't get executed when using the closeAllModals method, even though noOpenedItems === true. However, when calling currentModal from the useModal hook, it's not equal to undefined. I believe this logic is incorrect because the service should complete the callback regardless of noOpenedItems.
Problem
Sometimes in our application, we encounter an issue where the callback doesn't get executed when using the closeAllModals method, even though noOpenedItems === true. However, when calling currentModal from the useModal hook, it's not equal to undefined. I believe this logic is incorrect because the service should complete the callback regardless of noOpenedItems.
Solution
I propose the following solution to this issue: https://github.com/colorfy-software/react-native-modalfy/pull/121