Trying to hide header and tabbar in Tab navigation in v6
<Tab.Screen
name="LoginScreens"
component={LoginStackScreen}
options={{tabBarVisible: false}}
/>
But here tabBarVisible is not working
After researching found the solution which is different from v5
<Tab.Navigator
screenOptions={{
headerShown: false,
}}>
<Tab.Screen
name="LoginScreens"
component={LoginStackScreen}
options={{
tabBarStyle: {display: 'none'},
}}
/>
</Tab.Navigator>
tabBarStyle: {display: 'none'} to hide the tabbar and headerShown: false is to hide the header for all pages
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.