title: go two screen back with single press event using react-navigation in react native app
body: <p>I am using reactnavigation component from <a href="https://reactnavigation.org" rel="noreferrer">https://reactnavigation.org</a> and using the code below i am going one screen back</p>
  
  <pre><code>&lt;Button
            onPress={() =&gt; goBack()}
            title="Go back from this HomeScreen"
          /&gt;
  </code></pre>
  
  <p>how can i go 2 screen back on single press action</p>
  
  <p>I am using this code to initialize the navigator</p>
  
  <pre><code>const RouteConfigs = {
      Login: {screen:Login},
      Home: {screen:Home},
      Chat: {screen:Chat},
      Facebook: {screen:Facebook},
      Facebookgallery: {screen:Facebookgallery}    
  }
  
  const StackNavigatorConfig = {
      headerMode: 'none',
  }
  
  export default StackNavigator(RouteConfigs, StackNavigatorConfig)
  </code></pre>
  
  <p>I navigate from home to Facebook with this code :</p>
  
  <pre><code>() =&gt; this.props.navigation.navigate('Facebook', {user:this.state.user})
  </code></pre>
  
  <p>and from Facebook to Facebookgallery with this code :</p>
  
  <pre><code>onPress={ () =&gt; this.props.navigation.navigate('Facebookgallery', {user:this.state.user}) }
  </code></pre>
  
  <p>now i want to go back from Facebookgallery to Home directly with some parameters </p>