-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
[馃悰] Navigating to react navigation modal after image picker often causes navigation to break #2270
Comments
I am having the same issue. I can confirm that this happens with |
Strangely, this did not happen in the previous version of my app, despite me not having changed anything relevant to this particular interaction. My suspicion is that it's some sort of race condition or weird unintended interaction between |
@tmoran-stenoa @benzman81 Can you check and confirm if the issue also occurs on older version of iOS e.g. iOS 16.x on iPhone X / or any other non-updated iPhone? |
My code has changed since my post above and the issue somehow disappeared, so I'm afraid I can't say... but you might have some luck with the minimal reproducing example that OP posted above. |
@tmoran-stenoa Thanks! In my case, upgrading to latest version (0.74) of react-native and other relevant libraries caused the issue to disappear. |
Description
We use react navigation with a stack navigator containing modal screens. Now, when we use the image picker we want to navigate to the modal screen after the image is selected. The problem is, that this often does not work and then all modals in react navigation stop working. If you surround the navigation call after the image picker using a setTimeout, then the issue reduces but is still there, just less likely. No matter what time we set. We also tried to call setTimeout recursively multiple times, but nothing gets it back to work.
We tried this with
react-native-image-crop-picker
andreact-native-document-picker
, but this issue does not happen there. At least not in all our tries.How to repeat issue and example
Since I also included
react-native-image-crop-picker
andreact-native-document-picker
in the sample, you can also check the process using their library that don't show this issue.Solution
The navigation should be working 100% and the modal should be shown.
Additional Information
AwesomeProject.zip
The text was updated successfully, but these errors were encountered: