Meenu Agrawal
Meenu Agrawal

Reputation: 27

React Native Scrollable Tab View : tabBarUnderlineColor is not getting applied

Below is the code, the way I have used react-native-scrollable-tab-view: Other than tabBarUnderlineColor , every style is getting applied! I am refering "http://www.rntools.co/pkg/react-native-scrollable-tab-view" for the same

`<ScrollableTabView
    initialPage={0}
    renderTabBar={() => <ScrollableTabBar />}
    tabBarUnderlineColor = '#ff6600'
    tabBarActiveTextColor='#ffffff'
    tabBarInactiveTextColor ='#747474'
    tabBarBackgroundColor = '#255a72'>
<View tabLabel='Activity1'></View>
<View tabLabel='Activity2'></View>
<View tabLabel='Activity3'></View>
</ScrollableTabView>`

Let me know, in case I have done any coding mistake.

Upvotes: 1

Views: 2100

Answers (2)

user8100761
user8100761

Reputation: 56

You can do this

tabBarUnderlineStyle={{backgroundColor:'#fd8763',height:2,}}

source code

Upvotes: 4

RRikesh
RRikesh

Reputation: 14381

tabBarUnderlineColor doesn't exist, you should use tabBarUnderlineStyle.

tabBarUnderlineStyle (View.propTypes.style) - style of the default tab bar's underline.

source

Upvotes: 0

Related Questions