react-navigation.github.io icon indicating copy to clipboard operation
react-navigation.github.io copied to clipboard

Linking inconsistency between closed app and open app deep link

Open michaelpomogajko opened this issue 5 years ago • 1 comments

When I do the following deeplink myApp://detail/123 (123 being an ID) with the app being closed and the following config

screens: {
  detail: {
    path: 'detail/:id',
  },
},

I'll get the correct state

{"key": "detail-SbcExuYkpp6-Y4u9rYWjO", "name": "detail", "params": {"id": "123"}}

but if the app is already open (foreground or background), and I send another deeplink, then this is the state I get

{"key": "detail-vqAsOQ3ZBfydQjUCcpX9e", "name": "detail", "params": {"initial": false, "params": {"id": "123"}, "screen": "detail", "state": undefined}}

So for some reason, you get a nested params

michaelpomogajko avatar Nov 08 '20 19:11 michaelpomogajko

Make sure to upgrade to latest version. And open issues in the main repo. This repo is for docs only.

satya164 avatar Nov 08 '20 19:11 satya164