Ability to specify type of navigation when using deep linking
closed
S
Swushi
In our app, we currently are trying to use deep links as much as possible to opt for a 'dumb' client. This allows us to receive navigation links from the backend and work similar to web.
However, we have a couple of issues that we have workarounds for, primarily not being able to specify the type of navigation.
One scenario that causes an issue: (I will use letters as screens)
Open A which is a modal, A opens B, so modal closes. B opens A modal again, and A again opens B, however B is already on the stack, so it is treated as a default 'goBack', however this is not what we are looking for. We would like to push this screen again.
satya164
closed
You can use the
getId
prop to control whether it adds a new screen to the stack or navigates to an existing screenhttps://reactnavigation.org/docs/screen/#getid
If you want every navigation to add a new screen, return a new ID every time.