【问题标题】:Reactive Native: How to modify the stylesheet directly to a file provided?Reactive Native:如何将样式表直接修改为提供的文件?
【发布时间】:2016-07-22 20:14:03
【问题描述】:

我想改变 'bottomBorderColor' 从

https://github.com/skv-headless/react-native-scrollable-tab-view/blob/master/DefaultTabBar.js#L75

在页面底部。

这样尝试过,但不幸的是没有用:

    <ScrollableTabView
      style={{borderBottomColor: 'white'}}
    >
      <Text tabLabel='Tab1'> Test 1 </Text>
      <Text tabLabel='Tab2'> Test 2 </Text>
      <Text tabLabel='Tab3'> Test 3 </Text>
    </ScrollableTabView>

提前谢谢你。

【问题讨论】:

    标签: javascript ios react-native react-jsx


    【解决方案1】:

    我想你忘了应用 borderBottomWidth 属性。您需要执行以下操作:

    <ScrollableTabView
      style={{borderBottomColor: 'white', borderBottomWidth: 3}}
    >
      <Text tabLabel='Tab1'> Test 1 </Text>
      <Text tabLabel='Tab2'> Test 2 </Text>
      <Text tabLabel='Tab3'> Test 3 </Text>
    </ScrollableTabView>

    【讨论】:

    • 试过了,可惜没成功...应该用其他方法吗?
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-07-19
    • 2018-01-29
    • 2018-10-04
    • 2021-10-20
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多