https://github.com/pvinis/modal-react-navigation-repro
https://github.com/pvinis/modal-react-navigation-repro
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/pvinis/modal-react-navigation-repro
- Owner: pvinis
- Created: 2020-02-10T17:26:48.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-02-22T08:59:03.000Z (over 5 years ago)
- Last Synced: 2025-01-31T01:14:18.125Z (4 months ago)
- Language: Objective-C
- Size: 8.38 MB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# modal-react-navigation-repro
There is a problem with stacks when we involve a "switch", a stack and a stack with modal.
The typical "switch" navigator for v5 is to just have a conditional return. I used here the typical "auth" flow. Then we have the stack with a `Home` and a `Something` screen, just to test this. All good so far.
Now we add a stack with modal that goes before the `MainStack`, as the documentation suggests. Now we have a problem!
When we log in, the next screen comes as a modal! This is not what we want. The `Home` screen should appear as a normal stack screen, and only the `Modal` should appear as a modal screen. Is this a bug with the library, a restriction of the library, or just a case that is not considered?
Gif:
In general, I am finding the library to be hard to work with modals. Mostly with modals that need to have a stack inside them, and multiple modals at the same time.