react-navigation goBack with universal link

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.
Screen Shot 2020-07-17 at 10.21.16 AM

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.

  1. SDK: 37:
  2. Platforms(Android/iOS/web/all): Android (didn’t test in iOS)
  3. 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",

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.