图书馆:react-native-scrollable-tab-view 我无法弄清楚我做错了什么:/我想改变tabBarBackgroundColor:
export default class MainNavigation extends Component{
render() {
return (<ScrollableTabView
style={{marginTop: 20}}
initialPage={1}
renderTabBar={() => <FacebookTabBar />}
tabBarPosition="bottom"
locked={true}
tabBarBackgroundColor = "#FF0000" // <------
tabBarActiveTextColor = "#FF0000" // <------
>
<ScrollView tabLabel="list-ul" style={styles.tabView}>
<View style={styles.card}>
<Text>Übersicht</Text>
</View>
</ScrollView>
...
但它忽略了它并且什么都不做&gt;。&lt;
tabBarPosition =“bottom”和 locked = {true} 工作正常。
任何提示?真的很感激它:)
问候, 斯蒂芬妮^ _ ^
答案 0 :(得分:0)
使用自定义tabBarBackgroundColor
renderTabBar
和其他tabBar样式
如果删除renderTabBar
功能,此样式将起作用。
您需要调整<FacebookTabBar />
组件