I have app.js in which:
JavaScript
x
15
15
1
const Tab = createBottomTabNavigator();
2
3
4
export default function App() {
5
6
return (
7
<NavigationContainer>
8
<Tab.Navigator>
9
<Tab.Screen name='Home' component={Home} />
10
</Tab.Navigator >
11
</NavigationContainer>
12
)
13
14
}
15
I display the bottom tabs, but I see the navigation at the top that shows “Home” as with StackNavigator. I want there to be no true field
Advertisement
Answer
To Hide bottom tab label
JavaScript
1
21
21
1
const Tab = createBottomTabNavigator();
2
3
4
export default function App() {
5
6
return (
7
<NavigationContainer>
8
<Tab.Navigator
9
tabBarOptions={{
10
showLabel: false, // add this line to hide tab label
11
12
}}
13
>
14
<Tab.Screen name='Home' component={Home} />
15
</Tab.Navigator >
16
</NavigationContainer>
17
)
18
19
}
20
21