wix / react-native-navigation

A complete native navigation solution for React Native
https://wix.github.io/react-native-navigation/
MIT License
13.02k stars 2.67k forks source link

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

Open manikandanb24 opened 11 months ago

manikandanb24 commented 11 months ago

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?

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 commented 8 months ago

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 commented 4 months ago

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 commented 2 weeks ago

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