title: react native redirection with URL pattern
body: <p>I am trying to add <em>facebook</em> and <em>google</em> authentication in my <em>react native app</em>. All this operation is done on server (<em>ExpressJS</em>) using <a href="https://www.npmjs.com/package/passport" rel="nofollow noreferrer">passport</a>. On success I want to redirect with url pattern as below</p>
  
  <pre><code>AppName://login?data=somejson
  </code></pre>
  
  <p>I have registered a scheme in expo's app.json as mentioned at this link
  <a href="https://docs.expo.io/versions/latest/guides/linking.html" rel="nofollow noreferrer">https://docs.expo.io/versions/latest/guides/linking.html</a> and my json looks as below</p>
  
  <pre><code>{
    "expo": {
      "name": "My App",
      "slug": "my-app",
      "sdkVersion": "21.0.0",
      "privacy": "public",
      "scheme": "AppName"
    }
  }
  </code></pre>
  
  <p>In the same link it says that if you want to open app in expo in development mode then link should be something as below</p>
  
  <pre><code>exp://wg-qka.community.app.exp.direct:80/+
  </code></pre>
  
  <p>I have changed my server code to redirect with above pattern but it still doesn't work. I am able to open browser and login but that's pretty much. Nothing happens after that even though I have added event listener for this case</p>
  
  <pre><code>exp://wg-qka.community.app.exp.direct:80/login?data=somejson
  </code></pre>
  
  <p>My App.js code for react native. I am expecting event listener to be triggered but nothing happens</p>
  
  <pre><code>Linking.addEventListener('url', this.someFunction);
  Linking.getInitialURL().then((url) =&gt; {
    // some operation
  });
  </code></pre>