Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Showing modal in iOS displays modal once #96

Open
armespavong opened this issue Oct 18, 2023 · 1 comment
Open

Showing modal in iOS displays modal once #96

armespavong opened this issue Oct 18, 2023 · 1 comment

Comments

@armespavong
Copy link

armespavong commented Oct 18, 2023

I've been trying to show modal in iOS based on the document https://react-nativescript.netlify.app/docs/core-concepts/modals. Everything works fine in android but in iOS, the modal displays only once. After I closed the modal call the function handleOpenModal to show it again, the modal doesn't display.

Here are my dependencies
"@nativescript/core": "^8.6.0"
"react-nativescript": "^5.0.0"
"@nativescript/android": "^8.6.2"
"@nativescript/ios": "8.6.1"

Please see this in my video
My Video

@shirakaba
Copy link
Owner

shirakaba commented Oct 18, 2023

I’m afraid I’m not actively maintaining RNS anymore so won’t be able to dig into what the cause for the issue might be, but I would recommend as an alternative trying the React Navigation (version 5) approach to opening a modal rather than the portal-based approach (it’s documented because it used to be the only way to open portals before I implemented a proper navigation library, but ideally the docs should recommend React Navigation instead):

https://reactnavigation.org/docs/5.x/modal/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants