Tell us which versions you are using:
Indicator style changes to color #de1d3e
The default indicator style of yellow is not changed based on my code.
I followed react-navigation documentation at https://github.com/react-community/react-navigation/blob/master/docs/api/navigators/TabNavigator.md .
<Scene key="tabbar" tabBarStyle={styles.tabBarStyle} tabBarPosition={'top'} {...sceneConfig} hideNavBar tabs={true} >
tabBarStyle: {
backgroundColor: '#eeeeee',
indicatorStyle : {
color: '#de1d3e'
},
},
It uses a separate styling : See below
<Scene tabs indicatorStyle={styles.indicatorStyle} tabBarStyle={styles.tabBarStyle}/>
const styles = {
tabBarStyle: {
backgroundColor: '#eeeeee',
},
indicatorStyle:{
backgroundColor:'#de1d3e'
},
};
I just tried that and it doesn't seem to work.
it's work for me
const tabMaterial = createMaterialTopTabNavigator(
{
option1: Option1Screen,
option2: Option2Screen
},
{
tabBarOptions: {
indicatorStyle: {
backgroundColor: "#ffffff"
}
}
}
);
Most helpful comment
It uses a separate styling : See below