-
-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Crash on iOS with "Unimplemented component: <RNSScreenContentWrapper>" when using @react-navigation/native-stack under New Architecture (RN 0.79.0) #12567
Description
Current behavior
After upgrading to React Native 0.79.0 and enabling the New Architecture (newArchEnabled=true), using createNativeStackNavigator from @react-navigation/native-stack crashes the app on iOS with the following runtime error:
Unimplemented component: <RNSScreenContentWrapper>
This happens even though react-native-screens@5.21.0 is installed and enableScreens() is properly invoked.
This strongly suggests that the native module RNSScreenContentWrapper is not correctly registered for the Fabric renderer.
Expected behavior
The screen should render normally without a runtime crash, with native stack navigation functioning as expected under the New Architecture.
Reproduction
You can reproduce the issue by following these steps:
-
Create a new React Native project using version
0.79.0 -
Install the following packages:
yarn add @react-navigation/native @react-navigation/native-stack react-native-screens@5.21.0 -
Enable New Architecture by setting
newArchEnabled=truein bothgradle.propertiesandPodfile.properties.json -
Wrap the root component with
<NavigationContainer>and render a stack navigator usingcreateNativeStackNavigator() -
Run
npx pod-install -
Launch the iOS app:
npx react-native run-ios -
Observe the crash:
Unimplemented component: <RNSScreenContentWrapper>
Reproduction
https://github.com/chooseongwoo/SPOT
Platform
- Android
- iOS
- Web
- Windows
- MacOS
Packages
- @react-navigation/bottom-tabs
- @react-navigation/drawer
- @react-navigation/material-top-tabs
- @react-navigation/stack
- @react-navigation/native-stack
- react-native-drawer-layout
- react-native-tab-view
Environment
| package | version |
|---|---|
| @react-navigation/native | 7.1.6 |
| @react-navigation/bottom-tabs | 7.3.10 |
| @react-navigation/stack | 7.2.10 |
| @react-navigation/native-stack | 7.3.10 |
| react-native-screens | 4.10.0 |
| react-native-safe-area-context | 5.4.0 |
| react-native-gesture-handler | 2.25.0 |
| react-native-reanimated | 3.17.4 |
| react-native | 0.79.0 |
| node | 20.11.1 |
| yarn | 1.22.22 |