我想在createMaterialTopTabNavigator的Tab导航器上方添加大标题视图。如何在反应导航中更改顶部标签标题的高度?
navigationOptions: ({ navigation, screenProps }) => ({
tabBarVisible: true,
headerMode:'screen',
headerTitle: <TabHeader/>,
height:50,
tabBarLabel: () => {
const { routeName } = navigation.state;
switch (routeName) {
//
}
return <Text>{routeName}</Text>;
},
}),
animationEnabled: false,
swipeEnabled: true,
...