-
-
Notifications
You must be signed in to change notification settings - Fork 507
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
iOS modal screens disappear behind the previous screen #1356
Comments
I haven't been able to reproduce this behavior in the snack you provided so I am not sure if we can do anything about it unfortunately. Also I've never seen such issue, maybe there is something really weird in how you handle navigation actions and you need to extend your reproduction. |
Make sure you are not navigating from modal to modal since this does not seem to work correctly |
Are you really sure you're not conditionally un-mounting the modal from the navigator? This is what it kinda looks like. |
I'm going to close this issue. I still don't know what was causing that undesired behavior, but it seems to have resolved itself after upgrading |
Still having this issue with the latest libraries, all back animations disappearing instantly, have tried multiple versions. I'm really struggling to make a repro, the behaviour came on when I updated everything (and to react native 0.69), but I've since downgraded everything back and it's still there
|
@fahadfj I cannot say much without a minimal reproduction unfortunately. |
Description
I've attached a screen cap of what's happening, I'll try to explain it. No matter what modal "type" I try to use, whether formSheet, modal, contained, etc. etc., when dismissing the modal programmatically, the modal screen disappears behind the screen that's being navigated to or popped to in some cases. This even happens with a modal stacked on top of another modal. This does NOT happen with manual swipe gestures.
And to be clear, this is happening in using React Navigation. What I can't tell is if the unexpected behavior is from react-native-screens or @react-navigation/native-stack
Screenshots
RPReplay_Final1646077188.MP4
Steps To Reproduce
Expected behavior
When modal is dismissed, we should see the exit animation that reveals the screen underneath.
Actual behavior
The modal is dismissed but the screen "underneath" the modal seems to overtake the modal presentation in the view hierarchy, and the exit animation for the modal happens behind the previous or "underneath" screen.
Reproduction
I tried to repro this in a snack with the exact dependencies but could not. Included the Snack anyway just to be safe.
https://snack.expo.dev/tmN7fzMKF
Platform
Workflow
Package versions
The text was updated successfully, but these errors were encountered: