Answers for "react navigation 5 poptotop example"

2

get current screen name react navigation

props.navigation.state.routeName
Posted by: Guest on May-21-2020
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 "react navigation 5 poptotop example"

Code answers related to "Javascript"

Browse Popular Code Answers by Language