-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Add React Navigation 7 Support #4601
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
Comments
PR here: #4644 |
See PR: #4615 |
Will this be addressed soon? |
It seems the version of It would be great to merge the migration to React Navigation 7.x |
hi there, same issue with use-latest-callback on Card component package.json
|
@lukewalczak sorry for the ping, but I believe this is an urgent issue. It prevents upgrading to the latest version of RN/Expo/React Navigation. |
Hey @szado, I'm going to start the work on it today/tomorrow and will do my best to have that reviewed-merged-and released in the next week, but cannot guarantee that. I've noticed also there are two PRs opened, for v7 support, however I believe we need to also ensure compatibility with the previous version. |
The For implementation details, see the dedicated example. |
Current behaviour
Currently, the Bottom Tab Navigator (react-native-paper/react-navigation) cannot be used with the latest version of react-navigation (7.x) or with the latest expo-router due to changes in the react-navigation API. The issue is that useLinkBuilder now returns an object instead of a builder function.
An error occurs: buildLink is not a function.
After a brief investigation, I noticed there was an attempt to add support for react-navigation@7, but the changes were reverted.: https://github.com/callstack/react-native-paper/pull/3958/files
The fix seems quite simple; if we're dealing with v7 (the hook value is an object) we should try to call
buildHref
method on it.Docs: https://reactnavigation.org/docs/use-link-builder/
Your Environment
The text was updated successfully, but these errors were encountered: