Everything online has told me I have to do headerShown: false
in order to hide the header but for some reason it is not working for me in my code:
const Stack = createNativeStackNavigator();
const App = () => {
return (
<NavigationContainer>
<Stack.Navigator
screenOptions={{
headerShown: false
}}>
<Stack.Screen name='Welcome Screen' component={WelcomeScreen}/>
</Stack.Navigator>
</NavigationContainer>
)
}
I have done everything it said to do in the documentation but I am still seeing the header in the emulator.