Skip to content
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][Fabric] setRoot Crashes the app #7780

Open
1 task done
manikandanb24 opened this issue Sep 2, 2023 · 6 comments
Open
1 task done

[IOS][Fabric] setRoot Crashes the app #7780

manikandanb24 opened this issue Sep 2, 2023 · 6 comments

Comments

@manikandanb24
Copy link

What happened?

Calling setRoot second time crashes the app in IOS. This happens only on new architecture. Its crashing on Playground app as well.

What was the expected behaviour?

Should replace the stack with the new stack

Was it tested on latest react-native-navigation?

  • I have tested this issue on the latest react-native-navigation release and it still reproduces.

Help us reproduce this issue!

Run the Playground app with new architecture(RCT_NEW_ARCH_ENABLED=1 bundle exec pod install;).

Navigation BottomTab => Set Root => Set Root.

App crashes with following error. Tried in multiple projects. Same behaviour.

But works as expected in Android with/without Fabric. In IOS with fabric disabled its working fine as well.

Crash Log

In what environment did this happen?

React Native Navigation version: 7.37.0
React Native version: 0.72.4 / 0.72.3
Has Fabric (React Native's new rendering system) enabled: Yes
Node version: 16
Device model: IOS simulator
iOS version: 16.4

@nilgautam
Copy link

Ios app crash when i am going to onborading screen to dashboard set root with otp gives but that second time direct navigate on dashboard how to solve it

@Lamardav
Copy link

Lamardav commented Apr 8, 2024

Ios app crash when i am going to onborading screen to dashboard set root with otp gives but that second time direct navigate on dashboard how to solve it

I confirm that there is such a problem

@trungthanhnt
Copy link

It still crashes with the 7.40.1 version running in New Architecture. Is there any updates?

@ivandortulov
Copy link

Still crashes.

@GideonAgboba
Copy link

Can we get an urgent fix for this, as this is a core part of the library, or at least give guidance on how to patch whichever module is responsible forsetRoot

Copy link

stale bot commented Jan 31, 2025

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
If you believe the issue is still relevant, please test on the latest version and report back. Thank you for your contributions.

@stale stale bot added the 🏚 stale label Jan 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants