reset navigation to specific tab react navigation

Solutions on MaxInterview for reset navigation to specific tab react navigation by the best coders in the world

showing results for - "reset navigation to specific tab react navigation"
Liah
06 Jan 2018
1navigation.reset({
2  index: 1,
3  routes: [
4    {
5      name: 'Screen1',
6      state: {
7        routes: [{ name: 'Tab2' }],
8      },
9    },
10    {
11      name: 'Screen1',
12      state: {
13        routes: [
14          {
15            name: 'Tab2',
16            state: {
17              routes: [{ name: 'Screen5' }, { name: 'Screen4' }]
18            },
19          },
20        ],
21      },
22    },
23  ],
24})
25