Advertisement
Guest User

Untitled

a guest
Jun 17th, 2019
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. import { NavigationActions, StackActions } from 'react-navigation';
  2. const resetAction = StackActions.reset({
  3. index: 0,
  4. actions: [NavigationActions.navigate({ routeName: 'MainActivity' })],
  5. });
  6. this.props.navigation.dispatch(resetAction);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement