title: Reset stack after pressing TabBar route
body: <p>I'm currently stuck with my project, I have a lot of nested navigators and I can't figure out how to reset one of them before navigating. </p>
  
  <p>Here's my navigators structure : ( the Screen X is the same )</p>
  
  <ul>
  <li>MainNavigator
  
  <ul>
  <li>TabBarNavigator 
  
  <ul>
  <li>StackNavigator A
  
  <ul>
  <li>Screen A -> navigate to Screen X</li>
  <li>Screen B</li>
  </ul></li>
  <li>StackNavigator B
  
  <ul>
  <li>Screen C -> navigate to Screen X</li>
  <li>Screen D </li>
  </ul></li>
  <li>StackNavigator C
  
  <ul>
  <li>Screen E -> navigate to Screen X</li>
  <li>Screen F</li>
  </ul></li>
  <li>StackNavigator D</li>
  </ul></li>
  <li>Other components </li>
  </ul></li>
  </ul>
  
  <p>So when i'm navigating from Screen A to screen X, i can still navigate to  other navigators ( B, C, D ) because the tabBar is still present and it's good. 
  However, if I open screen X in Navigator A, then navigate to a screen of Navigator B, when I come back on Navigator A I would like to land on Screen A and not on Screen X as it does right now ( the Screen X is still on top of Navigator A's stack ). </p>
  
  <p>To resume, my nav actualy does :
     - Navigator A -> Screen A -> Screen X -> Navigator B -> Screen B -> Go Back to Navigator A but lands on Screen X</p>
  
  <p>And i would like it to do :
     - Navigator A -> Screen A -> Screen X -> Navigator B -> Screen B -> Go back to Navigator A and land on Screen A </p>
  
  <p>I tried to set this up in my Screen X navigation option but it does only work on Navigator A : </p>
  
  <pre><code>tabBarOnPress: () =&gt; {
      navigation.goBack(navigation.state.key)
    }, 
  </code></pre>
  
  <p>Any help would be appreciated since i've been stuck on this for a while now. </p>
  
  <p>React : 16.0.0</p>
  
  <p>React Native : <a href="https://github.com/expo/react-native/archive/sdk-23.0.0.tar.gz" rel="nofollow noreferrer">https://github.com/expo/react-native/archive/sdk-23.0.0.tar.gz</a></p>
  
  <p>React navigation : ^1.0.0-beta.19</p>
  
  <p>Currently working on iOS simulator</p>