我正在使用react导航来构建我的应用程序,我想同时拥有标签和堆栈导航,所以我这样做了:
const FindPage = StackNavigator({
Find: {
screen: Find,
},
Item:{
screen:Item
}
}, {
initialRouteName: 'Find',
});
const ProfilePage = StackNavigator({
Profile: {
screen: Profile,
},
Item:{
screen:Item
}
}, {
initialRouteName: 'Profile',
});
const MyApp = createBottomTabNavigator({
Find: FindPage,
Profile: ProfilePage
}
});
const auth = StackNavigator({
Login:{
screen: Login,
},
Register:{
screen: Register,
},
Main:{
screen: MyApp,
}
},{
initialRouteName: 'Main',
headerMode: 'none'
});
export default auth;但是我不是很好。这就是屏幕截图所给出的:enter image description here
如果你看到标签丢失了标签图标和字体,当我在标签导航中使用堆栈导航时,这对我在另一个版本的react nvigation中是有效的,并且在web上找不到任何东西请帮助!
https://stackoverflow.com/questions/51255270
复制相似问题