i know this question has been asked before, (requireNativeComponent: “RNSScreenStackHeaderConfig” was not found in the UIManager when running android app, React Navigation Error, Invariant Violation: requireNativeComponent: “RNSScreenStackHeaderConfig” was not found in the UIManager) but none of the answers helped in solving my Problem.
Problem Description
Its pretty simple, i get the following Error when i start my react-native App on IOS:
ERROR Invariant Violation: requireNativeComponent: "RNSScreenStackHeaderConfig" was not found in the UIManager.
My app.js
import React from 'react';
import Header from './components/header';
import { SafeAreaView } from 'react-native';
import { NavigationContainer } from '@react-navigation/native';
import { createNativeStackNavigator } from '@react-navigation/native-stack';
import homeScreen from './screens/home'
const Stack = createNativeStackNavigator();
function App(){
return (
<SafeAreaView>
<NavigationContainer>
<Stack.Navigator>
<Stack.Screen name="Home" component={homeScreen} options={{ title: 'Welcome' }} />
</Stack.Navigator>
</NavigationContainer>
</SafeAreaView>
);
};
export default App;
It appeard after if followed this guide for navigating between Screens in react-native.
When removing const Stack = createNativeStackNavigator();
incl. the Stack.***
the Error also disappears. So i figured the Problem must be with that.
But due to me being a newbie to react-native, finding this Problem is quit hard.
Yes, i already tried the Solutions from the above mentioned Posts.
Thanks for any help,
Oliver