I want to hide header because I already have styled Toolbar in code:
import {createStackNavigator}
from \'react-navigation\'
const AppStackNavigator = createStac
All the answers I could find were from React navigation v4 for some reason, which doesn't work in v5. After spending some time on it I figured out a way to hide toolbar in v5. Here it is:
import { createStackNavigator } from "@react-navigation/stack";
import { NavigationContainer } from "@react-navigation/native";
...
const Stack = createStackNavigator();
....
//and inside render
render(){
return (
}
headerShown: false,
this will do the trick
If you need help with migrating from v4 to v5 -> https://reactnavigation.org/docs/upgrading-from-4.x/