Example doesn't run. Error "Couldn't find a route object"
Closed this issue · 0 comments
lon9man commented
What i did
- cloned latest repo
- added in package.json section 'resolutions' for
@types/react
, because it were a lot of build errors - yarn install (in project root and example-dir)
- yarn tsc -w
- 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?