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
navigation.reset makes iOS app crash without error #11259
Comments
Couldn't find version numbers for the following packages in the issue:
Can you update the issue to include version numbers for those packages? The version numbers must match the format 1.2.3. |
Hey @MSetnik! Thanks for opening the issue. It seems that the issue doesn't contain a link to a repro. The best way to get attention to your issue is to provide an easy way for a developer to reproduce the issue. You can provide a repro using any of the following:
A snack link is preferred since it's the easiest way to both create and share a repro. If it's not possible to create a repro using a snack, link to a GitHub repo under your username is a good alternative. Don't link to a branch or specific file etc. as it won't be detected. Try to keep the repro as small as possible by narrowing down the minimal amount of code needed to reproduce the issue. Don't link to your entire project or a project containing code unrelated to the issue. See "How to create a Minimal, Reproducible Example" for more information. You can edit your original issue to include a link to the repro, or leave it as a comment. The issue will be closed automatically after a while if you don't provide a repro. |
I wonder if this is related to #11201 |
Yes it is! |
I confirm that too, only on iOS. |
@MSetnik or @fr0staman do either of you have a simple repro? I just started to create a snack, but they don't support Expo 48 yet, which is required for RN 0.71.x. If not, I'll see if I can whip together a quick repo. This is blocking my RN upgrade. |
calling the reset function with setTimeout 0 seems to solve the issue for now |
Can confirm, this is current workaround |
Unfortunately, that doesn't work for me. My issue is a little different, which is that the app crashes when calling I can also work around by changing to
and |
I have discovered that my issue is only happening with New Arch enabled. I logged #11270, as it's unclear if it's related to this issue at all. |
Hello 👋, this issue has been open for more than a month without a repro or any activity. If the issue is still present in the latest version, please provide a repro or leave a comment within 7 days to keep it open, otherwise it will be closed automatically. If you found a solution or workaround for the issue, please comment here for others to find. If this issue is critical for you, please consider sending a pull request to fix it. |
This isn't happening on iOS for my project, however, it is happening on Samsung Galaxy devices only, and only when using Navigation.reset. I don't believe this is fixed and it should be reopened. The timeout workaround isn't working for us sadly. |
Hey! This issue is closed and isn't watched by the core team. You are welcome to discuss the issue with others in this thread, but if you think this issue is still valid and needs to be tracked, please open a new issue with a repro. |
Even timeout solution not working for me |
I use this workaround.
|
Hey! Any other fix maybe? |
Hey, in my case, i soluted this using two steps First, define de timging in animation close using the property Second, i seted on button to close modal, applying this function That way, i can close modal and replace the stack to other screen (that's was my problem). obviously has a little problem about the visual animation, but was enough to resolve the problem |
Worked for me! |
The iOS app (simulator, iOS 17.4) crashed after I updated react-native from 0.73.7 to 0.74.0. |
Change "react-native-reanimated": "^3.8.1" to "react-native-reanimated": "^3.11.0" |
Still crash the Expo app on IOS device, when returning back to the screen using navigation.navigate("Screen"), is there a solution , how to stop that "@react-navigation/bottom-tabs": "^6.5.20", |
Also happening here when going back with navigation.goBack() or navigation.popToTop() "react-native": "0.72.13", |
@Srh07 try installing npm i react-native-reanimated and expo install react-native-reanimated" (if you are using Expo), reload the app and it needs to be fixed, this worked for me |
@GabrielDokov thanks for the tip, however reanimated was already installed. I also tried reinstalling all of my node_modules and pods but unfortunately it's still not working. |
Import Modal from react native instead of importing it from react-native-modal. |
I got it working again with the following versions: The major thing I did was downgrading "react-native-reanimated" from 3.9.0 tot 3.8.1 and doing a "Clean build" within XCode. Only resetting cache when starting metro didn't seem enough. note: I always use Modal from react-native, so this was not an issue. |
Current behavior
when using navigation.reset, iOS app crash without error on react native v0.71.3.
Android app works fine.
on RN v0.70.6, app on both platforms works fine
Expected behavior
navigation.reset should not crash the app
Reproduction
cannot provide repo
Platform
Packages
Environment
The text was updated successfully, but these errors were encountered: