I am working on a React-Native app which I have ported it to Web using React-Native-Web (hosted on say http://myapp.com).
What I would like to do now, is to make custom URLs, like http://myapp.com/some/path/here/with/?params=something
which I can access it in my app to dispatch appropriate navigation action after parsing it.
My question is, how do I access /some/path/here/maybe/with/?params=something
?
With webpack dev server, whenever I try to access say localhost:8080/asdf
, it gives an error Cannot GET /asdf
I am using react-navigation 3.3.2 (with web compatibility patch for gesture handler). I have visited this SO question but it talks about a tightly coupled mapping from link to screen.
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.