Answers for "react navigation history clear"

0

react navigation history clear

import {NavigationActions, StackActions} from 'react-navigation';

 const resetAction = StackActions.reset({
      index: 0,
      actions: [NavigationActions.navigate({routeName: 'Home'})],
      key: null,
    });
    this.props.navigation.dispatch(resetAction);
Posted by: Guest on May-07-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language