react-native-android - indicatorStyle 在本机反应中不起作用
问题描述
我正在尝试稍微自定义 tabView,但我无法更改指示器条中活动选项卡的颜色。请帮忙。
<TabView style={{marginTop:0}}
indicatorStyle={{ backgroundColor: '#3090C7',
borderRadius: 24}}
navigationState={{ index, routes }}
renderTabBar={props => (
<TabBar
{...props}
renderLabel={({ route}) => (
<Text style={{ color:"black", margin: 8, fontWeight:"bold", fontFamily:"sans-serif", fontSize:16}}>
{route.title}
</Text>
)}
style={{backgroundColor: 'white'}}
/>
)}
renderScene={renderScene}
onIndexChange={setIndex}
/>
解决方案
推荐阅读
- python - 分组并将一个条目中的字符串应用于整个组
- wpf - WPF 如何获取多个值到模板?
- android - 如何使用广播接收器和 BOOT_COMPLETED 为登录用户发送大量通知
- angular - Angular Primeng 图表:带折线图的条形图
- javascript - 为什么 Opera mini 的 User-Agent 在 iPad 上打印奇怪?
- git - 如何在 git 中合并多个存储库
- javascript - 使用 Ajax 将关联数组传递给 Javascript
- kubernetes - Kubernetes 机密加密
- terraform - Terraform 中的条件属性
- android - Mapbox SymbolLayer 隐藏标记