Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Android open/close modal works only once

See original GitHub issue

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:

  1. instantiate an Expo 44 app
  2. run expo start
  3. copy over the code from the sample app
  4. 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:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:10 (8 by maintainers)

github_iconTop GitHub Comments

CharlesMangwacommented, Mar 10, 2022

Released in v3.1.1! 🚀

CharlesMangwacommented, Mar 10, 2022

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!

Read more comments on GitHub >

github_iconTop Results From Across the Web

useEffect function open/close modal based in props works ...
Learned that useState will be executed only one time for setting the initial state. But I have however more one problem. function AddItemModal( ......
Read more >
Open/close modal view from app.component breaks navigation
I currently do have multiple navigation steps in the modal view, if there is only ever a single navigation inside the modal there...
Read more >
How to Close a React Native Modal with a Button - CodeProject
I've been working with React Native lately, and I've come across a few unimplemented features I needed to add to the basic components....
Read more >
Uppy Open/Close Modal - CodePen
Insecure Resource. The resource you are linking to is using the 'http' protocol, which may not work when the browser is using https....
Read more >
bPopup.js – A jQuery modal popup plugin
The bug was only present if used with multiple popups (Thanks to Ben Meyers for reporting it). Bugfix: Resizing with positionStyle: fixed didn't ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found