benevbright/react-navigation-collapsible

Example doesn't run. Error "Couldn't find a route object"

Closed this issue · 0 comments

What i did

  1. cloned latest repo
  2. added in package.json section 'resolutions' for @types/react, because it were a lot of build errors
  3. yarn install (in project root and example-dir)
  4. yarn tsc -w
  5. yarn android

What i get

  • project has run
  • opened Home
  • click on "Sample 1-1 Default Header" (or any other)
  • get error "Couldn't find a route object. is your component inside a screen in a navigator?"
    error screenshots

from google link: it seems it is unable to call useRoute, useNavigation and etc outside screens-components

What i expect
run example on android emulator/device without error

Question
may i missing something how to run example without such problem?