Skip to content
This repository has been archived by the owner on Dec 3, 2022. It is now read-only.

useNavigation shouldn't be in @react-navigation/native? #57

Closed
kopax opened this issue Jan 5, 2020 · 3 comments
Closed

useNavigation shouldn't be in @react-navigation/native? #57

kopax opened this issue Jan 5, 2020 · 3 comments

Comments

@kopax
Copy link

kopax commented Jan 5, 2020

I have created the following issue regarding useNavigation error : https://github.com/react-navigation/native/issues/37

Should I instead use this module? If yes, I am currently implementing react-navigation 4.0.10, while you seems to support 3.11.1 (See https://github.com/react-navigation/hooks/blob/master/package.json#L62)

Which packages should I use to access the navigation object?

@kopax
Copy link
Author

kopax commented Jan 5, 2020

Using react-navigation-hooks@1.1.0 seems to fix the issue, this should be updated in expo doc

@kopax kopax closed this as completed Jan 5, 2020
@slorber
Copy link
Member

slorber commented Jan 5, 2020 via email

@kopax
Copy link
Author

kopax commented Jan 5, 2020

@slorber, thanks for your quick reply.

Yes I did but already and apparently I was using the wrong react-navigation documentation (v5 while using v4) so the wrong hooks.

See: react-navigation/react-navigation.github.io#595

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants