When I’ve a web link that I click, it opens the app, navigate to the a deep page according to the link. All good. But problem is that, this screen has a back button which calls react-navigation’s
goBack method (
this.props.navigation.goBack()). When I click this button followed by a link, the app crashes with the following error:
Invariant Violation: key should be a string
This does not happen when i’m navigating from the other pages in app. When happens if I’m coming from an external link.
here is the screenshot from sentry.
At the same time, hardware back button works just fine. it takes to previous screen opened before clicking the link. Any idea what’s wrong is highly appreciated.
- SDK: 37:
- Platforms(Android/iOS/web/all): Android (didn’t test in iOS)
- some package versions
"react-navigation": "^4.0.10", "react-navigation-drawer": "^2.3.3", "react-navigation-hooks": "^1.1.0", "react-navigation-stack": "^2.0.13",