-
-
Notifications
You must be signed in to change notification settings - Fork 514
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]: presentation: 'modal' in native-stack locks navigation after navigating to another modal screen too fast #1299
Comments
Can you check if #1326 fixes the problem and does not introduce any new ones? |
Fix bug with pushing modals on iOS too fast. See #1299 for more info. Co-authored-by: kacperkapusciak <kacper.kapusciak@swmansion.com>
Seems to still happen. At https://snack.expo.dev/swfnLagOD with the updated fix included (Version 3.13.1), this happens even faster. |
I tested it on the newest main and it works ok for me @andre161292. Can you show e.g. a video on which it does not work correctly? |
@WoLewicki Well... at first i thought you're right (and for a second i thought that even the original demo now works). Video.mp4 |
Are you able to reproduce it without Expo? |
Yes i'm able to. I found this thread, because i faced the issue in one of our companies apps. But as it's an unreleased app, i cannot share footage of it - that's why i went with the Expo demo. |
@andre161292 I can see that you are running it on iPad, so seems like it is a reason why it does not work, since dismissing a modal on iPad seems to work a bit differently when clicking outside of its area. Can you confirm that the issue happens only on iPads? |
@WoLewicki I'm sorry to say, but it's also happening to me on an iPhone (iOS 15.5 as well) - both in Expo and in our app. |
I took a look into this issue and:
But, just to be sure, let me know whether you use new architecture or not. |
@kkafar, @WoLewicki First of all, thank you both for looking into this issue and @kkafar for working on a fix! We're not using Fabric :/ We're using RN with RNUI.
I know some dependencies are outdated, but we're already working on upgrading to the latest React Native version. |
Fix bug with pushing modals on iOS too fast. See software-mansion/react-native-screens#1299 for more info. Co-authored-by: kacperkapusciak <kacper.kapusciak@swmansion.com>
* fix: check if jsThread is not null Description: Added a check for private _jsThread field in _bridge in order not to try and send events to JS before the thread is ready. Author: WoLewicki Commit: software-mansion@a14fcbd * fix: fast ios modal push Description: Fix bug with pushing modals on iOS too fast. See software-mansion#1299 for more info. Author: WoLewicki Commit: software-mansion@dc3d433
Fix bug with pushing modals on iOS too fast. See software-mansion/react-native-screens#1299 for more info. Co-authored-by: kacperkapusciak <kacper.kapusciak@swmansion.com>
Description
After we close modal screen with gesture and try to open another modal fast enough navigation within the stack locks and does not seem to work.
Screenshots
ios-modal-bug.mp4
Steps To Reproduce
Open screen with presentation: 'modal', then close it with gesture, then try to open another screen with presentation: 'modal'
Expected behavior
Open new modal as intended
Actual behavior
Locks navigation within stack
Reproduction
https://snack.expo.dev/@vzhovnitsky/cranky-apples
Platform
Workflow
Package versions
The text was updated successfully, but these errors were encountered: