我创建了一个底部的Tab导航器,其标题如下:(第一个标题)
Home: {
screen: HomeIndexScreen,
navigationOptions: () => ({
title: 'Home title'
}),
}
...
const MainTabNavigator = createBottomTabNavigator({
Home: {
screen: HomeStack,
navigationOptions: {
tabBarLabel: 'home'
},
},...
然后,在HomeStack屏幕中,我使用createMaterialTopTabNavigator(第二个-tabs标题-标头)
const HomeTabNavigator = createMaterialTopTabNavigator({
Features: {
screen: HomeTab2,
navigationOptions: {
title: 'Features'
},
},
Lastest: {
screen: HomeTab1,
navigationOptions: {
title: 'Lastest'
},
...
然后,在每个选项卡中,我创建一个Flatlist,并在Flatlist行中创建一个Detail屏幕。
const Tab1Navigator = createStackNavigator({
Home: {
screen: HomeTab1,
},
Details: {
screen: ItemTab1,
},
}, {
initialRouteName: 'Home',
});
这是我的问题:我现在在详细信息屏幕中有3个标题(带有详细信息屏幕标题)!
如何在详细信息屏幕中删除2个父标题? (仅详细屏幕)