Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update navigation references and mock objects #2080

Open
jleach opened this issue Jul 18, 2024 · 0 comments
Open

Update navigation references and mock objects #2080

jleach opened this issue Jul 18, 2024 · 0 comments

Comments

@jleach
Copy link
Member

jleach commented Jul 18, 2024

In React Native, you should generally import from @react-navigation/native rather than @react-navigation/core.

The @react-navigation/native package provides the core utilities for navigation and is designed to be the main entry point for React Navigation. It includes essential components and hooks that you'll commonly use in your navigation setup, such as NavigationContainer, useNavigation, and useRoute.

On the other hand, @react-navigation/core is a lower-level package that @react-navigation/native depends on. It's not typically used directly unless you need to extend or modify the core behaviour of React Navigation.

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

No branches or pull requests

1 participant