title: Accessing URL with params from a react-native-web app
body: <p>I am working on a React-Native app which I have ported it to Web using React-Native-Web (hosted on say <a href="http://myapp.com" rel="nofollow noreferrer">http://myapp.com</a>). </p>
  
  <p>What I would like to do now, is to make custom URLs, like <code>http://myapp.com/some/path/here/with/?params=something</code> which I can access it in my app to dispatch appropriate navigation action after parsing it.</p>
  
  <p>My question is, how do I access <code>/some/path/here/maybe/with/?params=something</code>?</p>
  
  <p>With webpack dev server, whenever I try to access say <code>localhost:8080/asdf</code>, it gives an error <code>Cannot GET /asdf</code></p>
  
  <p>I am using react-navigation 3.3.2 (with web compatibility <a href="https://github.com/necolas/react-native-web/issues/1224#issuecomment-460604999" rel="nofollow noreferrer">patch</a> for gesture handler). I have visited this SO <a href="https://stackoverflow.com/questions/49186634/how-to-use-react-native-web-and-react-navigation-together-and-access-from-web-ur">question</a> but it talks about a tightly coupled mapping from link to screen. </p>
  
  <p>What I want is something rather simple, I only need the path somewhere in my react app, so that I can act on it in some way.</p>