In React-Native with React-Navigation I have a Tabnavigator like so:
const testScreenNavigator = TabNavigator({
Tab1: { screen: Tab1Screen },
Tab2: { screen: Tab2Screen },
Tab3: { screen: Tab3Screen },
});
testScreenNavigator.navigationOptions = {
title: 'MY TITLE',
header: {
titleStyle:{
},
style:{
// how to set the options?
},
}
}
Now I want to do 2 things:
- Set the backgroundColor: 'red' of the Tabs in Android (not iOS bottom tabs)
- Have a badge next to Tab1: e.g.
Tab1 (2) | Tab2 | Tab3
Regards