react-native - 如何更改反应导航底部标签栏中的高度?
解决方案
Ciao,假设您正在使用createBottomTabNavigator
创建底部选项卡导航器,您可以使用如下选项自定义外观tabBarOptions
:
const MyTabNavigation = createBottomTabNavigator({
... // here your screens
},
{
animationEnabled: true, // maybe you want an animation?
tabBarPosition: 'bottom', // tab bar is on bottom of the screen
tabBarOptions: { // here your style customization
showLabel: true, // you want ot show label under the icon?
style:{
elevation: 3, // here set your elevation
height: 50 // here set your height
},
},
});
推荐阅读
- flutter - 设置文本字段高度
- swift - 将 swift 代码编译为 32 位目标文件
- php - PHP,将选择字段(HTML)中的值与数组中的值进行比较不起作用
- php - 从另一个表的数组中从表中选择 where 子句
- mysql - 使用 MYSQL 查询寻找建议
- ios - 超出缓冲区时触发 AVPlayerItemDidPlayToEndTimeNotification
- c# - (File.Copy) mscorlib.dll 中未处理的“System.IO.IOException”
- assembly - 打开Calc.exe的Shellcode太长太复杂,看不懂!我的第一个漏洞利用程序
- javascript - Pact:用相同的端点编写不同的交互
- java - 从文本文件中读取用户名和密码并将它们与文本字段进行比较是行不通的,即使它们完全相同