Home
last modified time | relevance | path

Searched refs:navigationRef (Results 1 – 17 of 17) sorted by relevance

/expo/packages/expo-router/src/global-state/
H A Drouting.ts11 if (!store.navigationRef.isReady()) {
28 this.navigationRef?.current?.goBack();
37 if (!this.navigationRef.isReady()) {
40 return this.navigationRef?.current?.canGoBack() ?? false;
45 return (this.navigationRef?.current?.setParams as any)(params);
55 const navigationRef = this.navigationRef.current; constant
57 if (navigationRef == null) {
68 navigationRef.goBack();
72 const rootState = navigationRef.getRootState();
96 return navigationRef.dispatch(getNavigateReplaceAction(state, rootState));
[all …]
H A Drouter-store.tsx36 navigationRef!: NavigationContainerRefWithCurrent<ReactNavigation.RootParamList>;
52 navigationRef: NavigationContainerRefWithCurrent<ReactNavigation.RootParamList>,
74 this.navigationRef = navigationRef;
109 …* Additionally, some hooks compare the state from both the store and the navigationRef. If the sto…
113 this.navigationRefSubscription = navigationRef.addListener('state', (data) => {
118 … // NOTE(EvanBacon): `navigationRef.isReady` is sometimes not true when state is called initially.
203 if (store.navigationRef.isReady()) {
204 const currentState = store.navigationRef.getRootState() as unknown as ResultState;
231 const navigationRef = useNavigationContainerRef();
233 () => store.initialize(context, navigationRef, initialLocation),
/expo/packages/expo-router/build/global-state/
H A Drouting.js32 if (!store.navigationRef.isReady()) {
46 this.navigationRef?.current?.goBack();
55 if (!this.navigationRef.isReady()) {
58 return this.navigationRef?.current?.canGoBack() ?? false;
63 return (this.navigationRef?.current?.setParams)(params);
72 const navigationRef = this.navigationRef.current;
73 if (navigationRef == null) {
80 navigationRef.goBack();
83 const rootState = navigationRef.getRootState();
101 return navigationRef.dispatch(getNavigateReplaceAction(state, rootState));
[all …]
H A Drouter-store.js28 navigationRef; field in RouterStore
39 initialize(context, navigationRef, initialLocation) { argument
55 this.navigationRef = navigationRef;
88 this.navigationRefSubscription = navigationRef.addListener('state', (data) => {
163 if (exports.store.navigationRef.isReady()) {
164 const currentState = exports.store.navigationRef.getRootState();
181 const navigationRef = (0, native_1.useNavigationContainerRef)();
182 …(0, react_1.useMemo)(() => exports.store.initialize(context, navigationRef, initialLocation), [con…
H A Drouter-store.d.ts22 navigationRef: NavigationContainerRefWithCurrent<ReactNavigation.RootParamList>;
33 …initialize(context: RequireContext, navigationRef: NavigationContainerRefWithCurrent<ReactNavigati…
H A Drouting.js.map1navigationRef.isReady()) {\n throw new Error(\n 'Attempted to navigate before mounting the…
H A Drouter-store.js.map1navigationRef!: NavigationContainerRefWithCurrent<ReactNavigation.RootParamList>;\n navigationRef…
/expo/packages/expo-router/src/link/
H A DuseLoadedNavigation.ts10 const { navigationRef } = useExpoRouter(); constant
33 if (navigationRef.current) {
41 if (navigationRef.current) {
/expo/packages/expo-router/build/link/
H A DuseLoadedNavigation.js9 const { navigationRef } = (0, router_store_1.useExpoRouter)();
29 if (navigationRef.current) {
35 if (navigationRef.current) {
H A DuseLoadedNavigation.js.map1navigationRef } = useExpoRouter();\n const navigation = useNavigation();\n const isMounted = use…
/expo/packages/expo-router/src/
H A Dhooks.ts18 return store.navigationRef.current;
H A DExpoRoot.tsx87 ref={store.navigationRef}
/expo/packages/expo-router/build/
H A Dhooks.js19 return router_store_1.store.navigationRef.current;
H A DExpoRoot.js84 …return (react_1.default.createElement(NavigationContainer_1.default, { ref: store.navigationRef, i…
H A Dhooks.js.map1 …teInfo();\n}\n\nexport function useRootNavigation() {\n return store.navigationRef.current;\n}\n\…
H A DExpoRoot.js.map1 …nt;\n\n return (\n <UpstreamNavigationContainer\n ref={store.navigationRef}\n initia…
/expo/home/navigation/
H A DNavigation.tsx164 const navigationRef = useNavigationContainerRef<ModalStackRoutes>();
173 const nav = navigationRef.current;
204 ref={navigationRef}