使用react-native-scrollable-tab-view及其道具的问题:((本机反应)

时间:2017-03-14 18:58:28

标签: android ios react-native

图书馆: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} 工作正常。

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

问候, 斯蒂芬妮^ _ ^

1 个答案:

答案 0 :(得分:0)

使用自定义tabBarBackgroundColor

时,无法设置renderTabBar和其他tabBar样式

如果删除renderTabBar功能,此样式将起作用。

您需要调整<FacebookTabBar />组件

中的颜色