[英]How to use react native navigation to create a nested navigation? (Example: Stack navigator inside a Tab navigator)
I'm trying to create a nested navigation as shown in the image below. 我正在尝试创建嵌套导航,如下图所示。 I need to have a main TabNavigator and then inside one tab page, I need to add a StackNavigator to enable navigation to that tab page's sub pages.
我需要有一个主TabNavigator,然后在一个标签页中,我需要添加一个StackNavigator以启用到该标签页子页面的导航。 How can I do this?
我怎样才能做到这一点?
Here's an illustration of what I need to do: 这是我需要做什么的说明:
Please check my repository ,I have created a sample app of your scenario. 请检查我的存储库,我已经创建了您的方案的示例应用程序。
Type 1 https://github.com/paraswatts/StackNavigator-inside-TabNavigator 类型1 https://github.com/paraswatts/StackNavigator-inside-TabNavigator
Type 2 https://github.com/paraswatts/ParasWatts 类型2 https://github.com/paraswatts/ParasWatts
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.