Reputation: 7575
I am using react-native-scrollable-tab from https://github.com/skv-headless/react-native-scrollable-tab-view/blob/master/DefaultTabBar.js#L75 and I want to override the 'borderBottomColor' property of 'tabs' from what's provided, '#ccc', to 'white'.
How can I go about doing so in React Native?
For example, I tried the following but did not work:
<ScrollableTabView
style={{borderBottomColor: 'white'}}
>...</ScrollableTabView>
EDIT **
Upvotes: 0
Views: 234
Reputation: 5835
this.props.tabStyle gives you the ability to override styles.tabs.
What you need to do is:
<ScrollableTabView
tabStyle={{borderBottomColor: 'white'}}
>...</ScrollableTabView>
Ok, so I looked again at the entire code, and it seems that it's not possible to only override this color. The DefaultTabBar gets its override style from the ScrollableTabView parent, but ScrollableTabView doesn't let us pass our own style.
You have two options:
Upvotes: 0