TabActions reference
TabActions is an object containing methods for generating actions specific to tab-based navigators. Its methods expand upon the actions available in CommonActions.
The following actions are supported:
jumpTo
The jumpTo action can be used to jump to an existing route in the tab navigator.
name- string - Name of the route to jump to.params- object - Screen params to merge into the destination route (found in the pushed screen throughroute.params).
import { TabActions } from '@react-navigation/native';
const jumpToAction = TabActions.jumpTo('Profile', { user: 'Satya' });
navigation.dispatch(jumpToAction);