如何删除 BottomTabNavigator 中的底部文本?
How to remove bottom text in BottomTabNavigator?
如何删除底部标签导航器中图标下方的文本?
将labeled: false
添加到MaterialBottomTabNavigatorConfig
如下:
...
{
initialRouteName: 'Home',
activeColor: 'orange',
inactiveColor: '#aaa',
barStyle: {
backgroundColor: '#eee',
borderTopLeftRadius: 20,
borderTopRightRadius: 20,
overflow: 'hidden',
height: 70,
},
labeled: false
}
...
或者,看这里:
如何删除底部标签导航器中图标下方的文本?
将labeled: false
添加到MaterialBottomTabNavigatorConfig
如下:
...
{
initialRouteName: 'Home',
activeColor: 'orange',
inactiveColor: '#aaa',
barStyle: {
backgroundColor: '#eee',
borderTopLeftRadius: 20,
borderTopRightRadius: 20,
overflow: 'hidden',
height: 70,
},
labeled: false
}
...
或者,看这里: