Android open/close modal works only once
See original GitHub issueIssue Description
Hello, first of all, thanks for this great library, it’s really clean and approaches modals in React Native in a nice way. I’ve been implementing them using this library in my app and everything has went well, until I’ve noticed that the open/close interaction works only the first time.
What happens is when I try to open the modal every subsequent time, it opens, but it opens in such a way that it seems like the backdrop is overlaying the modal (like it has a higher zIndex), and with that, the modal is completely non actionable.
I cannot reproduce this issue on your example app which has been built with Expo 42, however, it is reproducible on an Expo 44 project.
Steps to reproduce:
- instantiate an Expo 44 app
- run
expo start
- copy over the code from the sample app
- The opening & closing will work on android only once.
The same behaviour works as intended on iOS. Any help would be greatly appreciated.
Issue Analytics
- State:
- Created a year ago
- Reactions:1
- Comments:10 (8 by maintainers)
Released in
v3.1.1
! 🚀Hi @nemanja-sljivic! Thanks for the kind words! Also big thank you for the PR: just gave it a shot on the repro app @fobos531 provided and your fix did do the trick indeed! Merging and releasing a new version right now!