1import {NavigationActions, StackActions} from 'react-navigation';
2
3 const resetAction = StackActions.reset({
4 index: 0,
5 actions: [NavigationActions.navigate({routeName: 'Home'})],
6 key: null,
7 });
8 this.props.navigation.dispatch(resetAction);