title: The action 'NAVIGATE' with payload {"name":"Home"} was not handled by any navigator
body: <p>Current Behavior
  Getting Error </p>
  
  <p>Private Route in react native not working on page changes. The action 'NAVIGATE' with payload {"name":"Home"} was not handled by any navigator.
  Do you have a screen named 'Home'?</p>
  
  <p>If you're trying to navigate to a screen in a nested navigator, see <a href="https://reactnavigation.org/docs/nesting-navigators#navigating-to-a-screen-in-a-nested-navigator" rel="nofollow noreferrer">https://reactnavigation.org/docs/nesting-navigators#navigating-to-a-screen-in-a-nested-navigator</a>.</p>
  
  <p>This is a development-only warning and won't be shown in production.</p>
  
  <p><a href="https://i.stack.imgur.com/gDTUL.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/gDTUL.jpg" alt="Error message"></a>
  Expected Behavior
  Not able to navigate using Auth flow.</p>
  
  <p>How to reproduce
  Used code from : <a href="https://reactnavigation.org/docs/auth-flow" rel="nofollow noreferrer">https://reactnavigation.org/docs/auth-flow</a></p>
  
  <pre><code>&lt;NavigationContainer&gt;
          &lt;Stack.Navigator
            screenOptions={{
              headerShown: false,
            }}&gt;
             {isSignedIn === "true"? ( 
              &lt;&gt; 
              &lt;Stack.Screen name="Home" component={Home} /&gt;
              &lt;Stack.Screen name="Bookorder" component={Bookorder} /&gt;
               &lt;/&gt; 
             ) : (
              &lt;&gt;
              &lt;Stack.Screen name="Login" component={Login} /&gt;
              &lt;/&gt;
            )}
          &lt;/Stack.Navigator&gt;
    &lt;/NavigationContainer&gt;
  </code></pre>
  
  <p>Environment
  System:
  OS: macOS 10.15.4
  CPU: (4) x64 Intel(R) Core(TM) i5-5350U CPU @ 1.80GHz
  Memory: 46.17 MB / 8.00 GB
  Shell: 3.2.57 - /bin/bash
  Binaries:
  Node: 13.12.0 - /usr/local/bin/node
  Yarn: Not Found
  npm: 6.14.4 - /usr/local/bin/npm
  Watchman: 4.9.0 - /usr/local/bin/watchman</p>