Answers for "reset navigation to specific tab react-navigation"

0

reset navigation to specific tab react-navigation

navigation.reset({
  index: 1,
  routes: [
    {
      name: 'Screen1',
      state: {
        routes: [{ name: 'Tab2' }],
      },
    },
    {
      name: 'Screen1',
      state: {
        routes: [
          {
            name: 'Tab2',
            state: {
              routes: [{ name: 'Screen5' }, { name: 'Screen4' }]
            },
          },
        ],
      },
    },
  ],
})
Posted by: Guest on October-15-2020

Code answers related to "reset navigation to specific tab react-navigation"

Code answers related to "Javascript"

Browse Popular Code Answers by Language