在我设置高度之前,它看起来像这样,注意在 tabBar 上方有一条线。
我像这样更改 tabBar 高度
{
initialRouteName: "Find",
tabBarOptions: {
activeTintColor: '#0a0a0a',
labelStyle: {
fontSize: ScreenUtil.scale(14),
},
style: {
backgroundColor: '#f7f7f7',
//----------add this line------------------------//
height: 70;
},
}
}
Run Code Online (Sandbox Code Playgroud)
结果是这样的,那条线现在已经消失了。
如果我想更改tabBar高度并保持该行,我该怎么办?