title: How to reset nested navigators (react-navigation v5)
body: <p>Having two sets of stack navigators;</p>
  <pre><code>const SetOneScreens = () =&gt; (
    &lt;Stack.Navigator initialRouteName=&quot;AScreen&quot;&gt;
      &lt;Stack.Screen name=&quot;AScreen&quot; component={AScreen} /&gt;
      &lt;Stack.Screen name=&quot;BScreen&quot; component={BScreen} /&gt;
    &lt;/Stack.Navigator&gt;
  );
  const SetTwoScreens = () =&gt; (
    &lt;Stack.Navigator initialRouteName=&quot;CScreen&quot;&gt;
      &lt;Stack.Screen name=&quot;CScreen&quot; component={CScreen} /&gt;
      &lt;Stack.Screen name=&quot;DScreen&quot; component={DScreen} /&gt;
    &lt;/Stack.Navigator&gt;
  );
  </code></pre>
  <p>Which are nested in a Drawer navigator</p>
  <pre><code>    &lt;NavigationContainer&gt;
        &lt;Drawer.Navigator initialRouteName=&quot;SetOneScreens&quot;&gt;
          &lt;Drawer.Screen name=&quot;SetOneScreens&quot; component={SetOneScreens} /&gt;
          &lt;Drawer.Screen name=&quot;SetTwoScreens&quot; component={SetTwoScreens} options={{swipeEnabled: false}} /&gt;
        &lt;/Drawer.Navigator&gt;
      &lt;/NavigationContainer&gt;
  </code></pre>
  <p>I want to navigate From <code>BScreen</code> to <code>DScreen</code> and reset the stack (in order to not letting hardware back button in android get back to <code>BScreen</code>)</p>
  <p>As in the nesting situation, we should first define the navigator name; how should I define the screen in reset action.</p>
  <pre><code>// For navigation 
  props.navigation.navigate('setTwoScreens',{screen:'DScreen'})
  
  // For reset I can only navigate to initial screen 
  props.navigation.reset({index:0,routes:[{name:'setTwoScreens'}]})
  </code></pre>
  <p>How should I handle the <code>reset</code> with <code>navigation</code> or <code>CommonActions</code></p>