如何解决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}
/>
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。