react-navigation - 如何将 BottomTabNavigator 的背景颜色设置为透明?不使用位置:'绝对'
问题描述
我正在尝试使我的 BottomTabNavigator 的背景透明。
我尝试将位置设置为“绝对”,这会使背景透明,但现在标签栏不再可点击。有谁知道解决方案?
tabBarOptions: {
inactiveBackgroundColor : COLORS.TINTCOLOR,
activeBackgroundColor: COLORS.TINTCOLOR,
activeTintColor: COLORS.WHITE,
inactiveTintColor: COLORS.WHITE,
showLabel: false,
labelStyle: {
fontSize: 12
},
style: {
borderTopWidth: 0,
borderTopColor: COLORS.TINTCOLOR,
height: 50,
position: 'absolute',
left: 0,
right: 0,
bottom: 0,
backgroundColor: 'transparent',
borderTopLeftRadius: 25,
borderTopRightRadius: 25,
overflow: 'hidden',
},
},
解决方案
推荐阅读
- ios - 在两个锚点之间居中
- python - 在熊猫中使用字典部分填充列
- excel - Excel 2016,如何提取与用作图表值的单元格相邻的未绘制图表的值?
- python - paho-mqtt 发布-订阅不能从 Python 中的单独文件工作
- sql - 如何在单个 SQL 查询中为每个字段选择第 k 条记录
- javascript - 尝试根据使用 Javascript 的 URL 中的内容重定向页面
- applescript - Applescript 以 Safari 私人模式打开 youtube
- typescript - ionic 4 - 背景地理位置问题
- r - 由于路径中的重音,在 R 中使用 readJPEG 打开 .jpg 时出错
- c++ - 从 QUdpSocket 发送的数据包在 Wireshark 中看不到