Skip to content

React Navigation error within the library #25

@robinrwmjv

Description

@robinrwmjv

I am trying to create a StackNavigator instance inside the library index.tsx to test out the navigation capabilities. I am getting the below error. Has anyone got this working within a library?

Invariant Violation: requireNativeComponent: "RNSScreenStackHeaderConfig" was not found in the UIManager.

Dependencies
"dependencies": {
"@react-native-community/masked-view": "^0.1.11",
"@react-navigation/native": "^6.0.8",
"@react-navigation/native-stack": "^6.5.0",
"react-native-gesture-handler": "^2.3.2",
"react-native-reanimated": "^2.4.1",
"react-native-safe-area-context": "^4.1.3",
"react-native-screens": "^3.13.1"
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions