title: React native Stack navigation how to use 'replace' in Stack action
body: <p>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,
  <a href="https://reactnavigation.org/docs/en/stack-actions.html" rel="nofollow noreferrer">https://reactnavigation.org/docs/en/stack-actions.html</a> 
  but I can't get it to work. </p>
  
  <pre><code>import { StackActions, NavigationActions } from 'react-navigation';
  
  const resetAction = StackActions.reset({
  
  key:,
  newKey:
  routeName:
  
  });
  this.props.navigation.dispatch(resetAction);
  </code></pre>
  
  <p>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? </p>