react-navigation.github.io
react-navigation.github.io copied to clipboard
Linking inconsistency between closed app and open app deep link
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
Make sure to upgrade to latest version. And open issues in the main repo. This repo is for docs only.