当我导航到我的FeedScreen
时,它只显示白色背景。但是我的FeedScreen
包含背景图片和按钮等。有谁知道我为什么只有白屏?我的导航包含我的MainTabNav
,它是一个标签栏,其中包含三个标签,其中一个是DiscoverNav
,这是另一个TabBar,应显示两个不同的屏幕,但它只显示白色背景。谢谢!顺便说一句,我正在使用React-Navigation进行导航!谢谢!
const DiscoverNav = TabNavigator({
Feed: {
screen: FeedScreen
},
Dank: {
screen: DankScreen
},
//Add in more tabs here
},
{
tabBarPosition: 'top'
});
const TicketNav = TabNavigator({
Tickets: {
screen: TicketScreen
},
History: {
screen: HistoryScreen
},
//Add in more tabs here
},
{
tabBarPosition: 'top'
});
const MainTabNav = TabNavigator({
Discover: {
screen: DiscoverNav
},
Tickets: {
screen: TicketNav
},
Profile: {
screen: FeedScreen
}
},
{
tabBarPosition: 'bottom'
});