首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >React导航混合导航

React导航混合导航
EN

Stack Overflow用户
提问于 2018-07-10 07:24:19
回答 0查看 465关注 0票数 1

我正在使用react导航来构建我的应用程序,我想同时拥有标签和堆栈导航,所以我这样做了:

代码语言:javascript
复制
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上找不到任何东西请帮助!

EN

回答

页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/51255270

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档