Skip to content

Crash on iOS with "Unimplemented component: <RNSScreenContentWrapper>" when using @react-navigation/native-stack under New Architecture (RN 0.79.0) #12567

@chooseongwoo

Description

@chooseongwoo

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:

  1. Create a new React Native project using version 0.79.0

  2. Install the following packages:

    yarn add @react-navigation/native @react-navigation/native-stack react-native-screens@5.21.0
    
  3. Enable New Architecture by setting newArchEnabled=true in both gradle.properties and Podfile.properties.json

  4. Wrap the root component with <NavigationContainer> and render a stack navigator using createNativeStackNavigator()

  5. Run npx pod-install

  6. Launch the iOS app: npx react-native run-ios

  7. 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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions