This repository was archived by the owner on Mar 17, 2025. It is now read-only.
Replies: 1 comment
-
FYI to get access to the navigation ref, you have to use router-store however this is not recommended and might not be supported for long. import { store } from "expo-router/build/global-state/router-store"
store.navigationRef |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello guys,
I'd like to know if anyone had the same issue as me... I'm trying to use the navigation "prop" inside my custom Axios interceptor. The problem is that I can't use a hook, as useNavigation, inside of it.
Using the React Navigation, you can have a "Navigation Service" based on ref. This is what I'm trying to do, but without success because we don't have a "NavigationContainer" component "exposed", right? How could I do that?
Here you can see the docs of React Navigation showing how to deal with it.
This is what I'm looking for, a way to link my 'navigationRef' to the expo-router 'NavigationContainer'...
Beta Was this translation helpful? Give feedback.
All reactions