2017-03-14 82 views
0

库:react-native-scrollable-tab-view 我无法弄清楚我做错了什么:/我想改变tabBarBackgroundColor:问题与react-native-scrollable-tab-view和他们的道具:(:(反应原生)

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> 
     ... 

但它忽略了它,并无所事事>。<

tabBarPosition = “底部”锁定= {TRUE}正在努力就好了。

任何提示?真的很感激它:)

问候, 孙燕姿^ _^

回答

0

您可以在您使用自定义renderTabBar

这种风格,如果你删除renderTabBar将工作不设置tabBarBackgroundColor和其他的TabBar风格功能。

您需要调整您的<FacebookTabBar />组件的颜色