Skip to content

Commit 9f6fa49

Browse files
authored
Add missing screenOptions to Tab.Navigator (react-navigation#1127)
When I copied the code from "A native stack navigator for each tab", I realized the header is being duplicated. I checked that in the snack version, there is this "screenOptions" which is missing in the docs. I added it now.
1 parent 6b0ff79 commit 9f6fa49

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

versioned_docs/version-6.x/tab-based-navigation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ const Tab = createBottomTabNavigator();
219219
export default function App() {
220220
return (
221221
<NavigationContainer>
222-
<Tab.Navigator>
222+
<Tab.Navigator screenOptions={{ headerShown: false }}>
223223
<Tab.Screen name="Home" component={HomeStackScreen} />
224224
<Tab.Screen name="Settings" component={SettingsStackScreen} />
225225
</Tab.Navigator>

0 commit comments

Comments
 (0)