I have problems with setting custom font Style for the header topbar in react navigation 4. Im using a MaterialTopTabNavigator and want to set a custom font or just resize the text in the header bar, and nothing works beside setting the 'title' inside 'navigationOptions', nothing else I want to set there is getting applied.
Here is some code for context. Im creating the "ChatStories"-Navigator which is part of the PBNavigator.
const ChatStories = createMaterialTopTabNavigator(
{
Contacts: {
screen: ContactsScreen,
navigationOptions:{
title:"PigeonBuddies"//only THIS works, no other props
}
},
FriendsStories:{
screen: FriendsStoriesScreen,
navigationOptions:{
title:"Stories"//only THIS works, no other props
},
},
}
);
const PBNavigator = createStackNavigator({
Main: {
screen: MainScreen,
navigationOptions:{
headerShown: false,
}
},
...
ChatStories:{
screen: ChatStories,
navigationOptions:{
headerShown: false
}
}
}, {
defaultNavigationOptions:{
backgroundColor: Platform.OS === 'android' ? Colors.primary : '',
},
headerTintColor: Platform.OS === 'android' ? Colors.primary : Colors.primary,
}
);
Can somebody help me with my problem?