title: React Native Navigation: Reset Stack Navigator
body: <p>I'm using React Navigation 5.</p>
  <p>At the top I have a Drawer navigator, with the following screens:</p>
  <pre><code>  &lt;Drawer.Navigator&gt;
      &lt;Drawer.Screen name=&quot;One&quot; component={StackNavigatorOne} /&gt;
      &lt;Drawer.Screen name=&quot;Two&quot; component={StackNavigatorTwo} /&gt;
      &lt;Drawer.Screen name=&quot;Three&quot; component={StackNavigatorThree} /&gt;
    &lt;Drawer.Navigator/&gt;
  </code></pre>
  <p>Within StackNavigatorOne, I have a stack navigator,</p>
  <pre><code>&lt;Stack.Navigator&gt;
    &lt;Stack.Screen name=&quot;Screen1&quot; component={Screen1} /&gt;
    &lt;Stack.Screen name=&quot;Screen2&quot; component={Screen2} /&gt;
    &lt;Stack.Screen name=&quot;Screen2&quot; component={Screen3} /&gt;
  &lt;/Stack.Navigator&gt;
  </code></pre>
  <p>From the Drawer Navigator, if the user navigates to <code>Stack Navigator One</code>, and then moves to <code>Screen2</code>, the Screen2 stays on top. Now, if the user opens drawer navigation and again clicks on <code>Stack Navigator One</code>, he will be on Screen 2 only because Screen 2 is on top in that stack.</p>
  <p>However, what I need is that when the user clicks the <code>DrawerScreen One</code>, it should always go to <code>Screen1</code> of <code>StackNavigatorOne</code>. Is it possibe to reset the screens in <code>StackNavigatorOne</code> irrespective of which screen the user is on, when he click the <code>DrawerScreen One</code> in the drawer?</p>
  <p>Thanks.</p>