title: How to redirect users to specific screen of App from URI scheme in React navigation?
body: <p>Currently below URI scheme redirects the user to the home page in Android:</p>
  <pre><code>wagal://reset/password?token=123456789
  </code></pre>
  <p>And this is how I configured it in <code>HomeStack.js</code></p>
  <pre><code>const config = {
    screens: {
      ResetPassword: &quot;reset&quot;
    },
  };
  
  const linking = {
    prefixes: [&quot;wagal://&quot;],
    config
  };
  
  function homeStack() {
  
    return (
      &lt;NavigationContainer linking={linking} fallback={&lt;Text&gt;Loading...&lt;/Text&gt;}&gt;
        &lt;Stack.Navigator&gt;
  
          &lt;Stack.Screen component={ResetPassword} name=&quot;ResetPassword&quot; /&gt;
  
          // ...
  
        &lt;/Stack.Navigator&gt;
      &lt;/NavigationContainer&gt;
    );
  }
  </code></pre>
  <p><code>HomeStack</code> is referenced in <code>App.js</code>:</p>
  <pre><code>&lt;Provider store={store}&gt;
    &lt;HomeStack /&gt;
  &lt;/Provider&gt;
  </code></pre>
  <p>As you can see I am trying to redirect this URI scheme to <code>ResetPassword</code> screen, but due to some reasons it is always redirected to HomeScreen.</p>
  <p>What is the reason it isn't working? I followed <a href="https://reactnavigation.org/docs/configuring-links/#marking-params-as-optional" rel="nofollow noreferrer">documentation</a> and I couldn't find any reasons why it isn't working?</p>
  <p>Thank you in advance.</p>