reaja o histórico de redefinição de navegação nativa
navigation.resetRoot({
index: 0,
routes: [{
name: 'Root'
}]
})
florinrelea
navigation.resetRoot({
index: 0,
routes: [{
name: 'Root'
}]
})
import {NavigationActions, StackActions} from 'react-navigation';
const resetAction = StackActions.reset({
index: 0,
actions: [NavigationActions.navigate({routeName: 'Home'})],
key: null,
});
this.props.navigation.dispatch(resetAction);