How to navigate between different nested stacks in react navigation

后端 未结 14 804
情话喂你
情话喂你 2020-12-02 16:52

The Goal

Using react navigation, navigate from a screen in a navigator to a screen in a different navigator.

More Detail

If I have the following

14条回答
  •  Happy的楠姐
    2020-12-02 17:32

    try this,

    Parent Navigator
      Nested Navigator 1
        screen A
        screen B
      Nested Navigator 2
        screen A
        screen C
        screen D
    

    and then, there is no need to go A in 1 from D in 2, you can just go A from D both in 2, you can check here image or A stack navigator for each tab

提交回复
热议问题