I want to use the replace method in Stack Actions in react navigation v2, but I'm not quite sure how I've looked at the specification here, https://reactnavigation.org/docs/en/stack-actions.html but I can't get it to work.
import { StackActions, NavigationActions } from 'react-navigation';
const resetAction = StackActions.reset({
key:,
newKey:
routeName:
});
this.props.navigation.dispatch(resetAction);
I guess it's gotta be in some above format, but i'm not sure what has to go in to the parameters. Can anyone give me a working example?
Are you trying to reset or to replace?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With