我想创建具有边框半径的BottomTab,但是在我的标签后面显示背景颜色(白色),但我不知道如何删除或更改它:
我找到了'解决方案':
tabBarOptions={{
showLabel: false,
activeTintColor: theme.primary,
inactiveTintColor: theme.tintInactiveTabBar,
style: {
backgroundColor: theme.backgroundTabBar,
position: 'absolute',
left: 0,
bottom: 0,
right: 0,
borderTopWidth: 0,
borderTopRightRadius: 10,
borderTopLeftRadius: 10,
height: 60,
elevation: 0,
},
}}
但是设置位置:绝对还有另一个问题:在ScrollViews中看不到所有内容:
我尝试在te容器中设置填充或边距,但不起作用。
尝试一下: