使用标签栏导航时如何显示屏幕?反应过来,导航

时间:2017-04-28 15:04:27

标签: javascript reactjs react-native react-router react-navigation

当我导航到我的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'
});

0 个答案:

没有答案