title: Redirection to a mobile app from the webview of the app itself in React Native
body: <p>I'm building an android application which requires authentication from an external auth provider.So I'm using <a href="https://github.com/fullstackreact/react-native-oauth/" rel="noreferrer">react-native-oauth</a> package to handle this.</p>
  
  <p>The redirect_uri defined is a deep link which should ideally open my app itself after successful authentication.But the WebView seems to not handle this redirection and I'm getting response as 404-page not found.</p>
  
  <p>This is the service that I have written to handle the auth:</p>
  
  <pre><code>    const manager = new OAuthManager('&lt;app_name&gt;')
  
      manager.addProvider({
           'provider': {
                    auth_version: '2.0', 
                    authorize_url:'&lt;auth-url&gt;',
                    access_token_url: '&lt;auth-url&gt;/token',
                    callback_url: 'http://localhost/provider',
           }
      });
  
      manager.configure({
         provider: {
             client_id: '&lt;id&gt;',
             client_secret: '&lt;secret&gt;',
             redirect_uri: '&lt;redirect-uri&gt;' //DEEP LINK HERE
        }
      });
     module.exports = {
        authManager: () =&gt; {
        manager.authorize('&lt;provider&gt;')
                          .then(resp =&gt; console.log(resp))
                          .catch(err =&gt; console.log(err));    
                      }
     }
  </code></pre>
  
  <p>Also I have defined my intent-filter as specified in the Android docs on <a href="https://developer.android.com/training/app-links/deep-linking.html" rel="noreferrer">how to declare the deep links for your apps</a>.The deep link works fine when opened with Linking.openURL() from the app components.</p>
  
  <p>Any help in this is much appreciated.</p>