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