expo-router 1.2.2 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/_root.tsx +1 -1
- package/build/ExpoRoot.d.ts +6 -0
- package/build/ExpoRoot.d.ts.map +1 -0
- package/build/LocationProvider.d.ts +25 -0
- package/build/LocationProvider.d.ts.map +1 -0
- package/build/NavigationContainer.d.ts +8 -0
- package/build/NavigationContainer.d.ts.map +1 -0
- package/build/Route.d.ts +34 -0
- package/build/Route.d.ts.map +1 -0
- package/build/exports.d.ts +15 -0
- package/build/exports.d.ts.map +1 -0
- package/build/fork/NavigationContainer.d.ts +3 -0
- package/build/fork/NavigationContainer.d.ts.map +1 -0
- package/build/fork/NavigationContainer.native.d.ts +26 -0
- package/build/fork/NavigationContainer.native.d.ts.map +1 -0
- package/build/fork/expo/createRoot.d.ts +2 -0
- package/build/fork/expo/createRoot.d.ts.map +1 -0
- package/build/fork/expo/createRoot.native.d.ts +3 -0
- package/build/fork/expo/createRoot.native.d.ts.map +1 -0
- package/build/fork/expo/registerRootComponent.d.ts +16 -0
- package/build/fork/expo/registerRootComponent.d.ts.map +1 -0
- package/build/fork/extractPathFromURL.d.ts +2 -0
- package/build/fork/extractPathFromURL.d.ts.map +1 -0
- package/build/fork/getPathFromState.d.ts +50 -0
- package/build/fork/getPathFromState.d.ts.map +1 -0
- package/build/fork/getStateFromPath.d.ts +33 -0
- package/build/fork/getStateFromPath.d.ts.map +1 -0
- package/build/fork/useLinking.d.ts +3 -0
- package/build/fork/useLinking.d.ts.map +1 -0
- package/build/fork/useLinking.native.d.ts +49 -0
- package/build/fork/useLinking.native.d.ts.map +1 -0
- package/build/getDevServer/index.d.ts +7 -0
- package/build/getDevServer/index.d.ts.map +1 -0
- package/build/getDevServer/index.native.d.ts +2 -0
- package/build/getDevServer/index.native.d.ts.map +1 -0
- package/build/getLinkingConfig.d.ts +15 -0
- package/build/getLinkingConfig.d.ts.map +1 -0
- package/build/getRoutes.d.ts +33 -0
- package/build/getRoutes.d.ts.map +1 -0
- package/build/head/Head.d.ts +7 -0
- package/build/head/Head.d.ts.map +1 -0
- package/build/head/Head.native.d.ts +11 -0
- package/build/head/Head.native.d.ts.map +1 -0
- package/build/index.d.ts +4 -0
- package/build/index.d.ts.map +1 -0
- package/build/layouts/Drawer.d.ts +107 -0
- package/build/layouts/Drawer.d.ts.map +1 -0
- package/build/layouts/Stack.d.ts +107 -0
- package/build/layouts/Stack.d.ts.map +1 -0
- package/build/layouts/Tabs.d.ts +154 -0
- package/build/layouts/Tabs.d.ts.map +1 -0
- package/build/layouts/withLayoutContext.d.ts +16 -0
- package/build/layouts/withLayoutContext.d.ts.map +1 -0
- package/build/link/Link.d.ts +33 -0
- package/build/link/Link.d.ts.map +1 -0
- package/build/link/href.d.ts +10 -0
- package/build/link/href.d.ts.map +1 -0
- package/build/link/linking.d.ts +7 -0
- package/build/link/linking.d.ts.map +1 -0
- package/build/link/path.d.ts +2 -0
- package/build/link/path.d.ts.map +1 -0
- package/build/link/stateOperations.d.ts +81 -0
- package/build/link/stateOperations.d.ts.map +1 -0
- package/build/link/useHref.d.ts +10 -0
- package/build/link/useHref.d.ts.map +1 -0
- package/build/link/useLinkToPath.d.ts +6 -0
- package/build/link/useLinkToPath.d.ts.map +1 -0
- package/build/link/useLinkToPathProps.d.ts +11 -0
- package/build/link/useLinkToPathProps.d.ts.map +1 -0
- package/build/link/useLinkingContext.d.ts +7 -0
- package/build/link/useLinkingContext.d.ts.map +1 -0
- package/build/link/useLoadedNavigation.d.ts +7 -0
- package/build/link/useLoadedNavigation.d.ts.map +1 -0
- package/build/link/useRouter.d.ts +15 -0
- package/build/link/useRouter.d.ts.map +1 -0
- package/build/matchers.d.ts +12 -0
- package/build/matchers.d.ts.map +1 -0
- package/build/onboard/Tutorial.d.ts +3 -0
- package/build/onboard/Tutorial.d.ts.map +1 -0
- package/build/onboard/createEntryFile.d.ts +3 -0
- package/build/onboard/createEntryFile.d.ts.map +1 -0
- package/build/onboard/useTutorial.d.ts +4 -0
- package/build/onboard/useTutorial.d.ts.map +1 -0
- package/build/primitives.d.ts +19 -0
- package/build/primitives.d.ts.map +1 -0
- package/build/renderRootComponent.d.ts +7 -0
- package/build/renderRootComponent.d.ts.map +1 -0
- package/build/static/renderStaticContent.d.ts +8 -0
- package/build/static/renderStaticContent.d.ts.map +1 -0
- package/build/static/useServerState.d.ts +42 -0
- package/build/static/useServerState.d.ts.map +1 -0
- package/build/static/useServerState.native.d.ts +2 -0
- package/build/static/useServerState.native.d.ts.map +1 -0
- package/build/types.d.ts +13 -0
- package/build/types.d.ts.map +1 -0
- package/build/useFocusEffect.d.ts +11 -0
- package/build/useFocusEffect.d.ts.map +1 -0
- package/build/useInitialRootState.d.ts +42 -0
- package/build/useInitialRootState.d.ts.map +1 -0
- package/build/useInitialRootState.native.d.ts +3 -0
- package/build/useInitialRootState.native.d.ts.map +1 -0
- package/build/useInitialRootStateContext.d.ts +13 -0
- package/build/useInitialRootStateContext.d.ts.map +1 -0
- package/build/useNavigation.d.ts +9 -0
- package/build/useNavigation.d.ts.map +1 -0
- package/build/useRootNavigation.d.ts +9 -0
- package/build/useRootNavigation.d.ts.map +1 -0
- package/build/useRootRouteNodeContext.d.ts +11 -0
- package/build/useRootRouteNodeContext.d.ts.map +1 -0
- package/build/useScreens.d.ts +27 -0
- package/build/useScreens.d.ts.map +1 -0
- package/build/utils/mockState.d.ts +11 -0
- package/build/utils/mockState.d.ts.map +1 -0
- package/build/views/ErrorBoundary.d.ts +4 -0
- package/build/views/ErrorBoundary.d.ts.map +1 -0
- package/build/views/Navigator.d.ts +280 -0
- package/build/views/Navigator.d.ts.map +1 -0
- package/build/views/Screen.d.ts +19 -0
- package/build/views/Screen.d.ts.map +1 -0
- package/build/views/Sitemap.d.ts +5 -0
- package/build/views/Sitemap.d.ts.map +1 -0
- package/build/views/Splash.d.ts +26 -0
- package/build/views/Splash.d.ts.map +1 -0
- package/build/views/Try.d.ts +24 -0
- package/build/views/Try.d.ts.map +1 -0
- package/build/views/Unmatched.d.ts +4 -0
- package/build/views/Unmatched.d.ts.map +1 -0
- package/package.json +6 -5
- package/src/fork/getStateFromPath.ts +1 -2
- package/src/link/Link.tsx +12 -7
- package/src/link/href.ts +2 -2
- package/src/link/stateOperations.ts +22 -14
- package/src/link/useLinkToPath.ts +3 -7
- package/src/ts-declarations.d.ts +1 -0
- package/src/useFocusEffect.tsx +1 -1
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const Screen: <RouteName extends string>(_: import("@react-navigation/core").RouteConfig<import("@react-navigation/core").ParamListBase, RouteName, Readonly<{
|
|
3
|
+
key: string;
|
|
4
|
+
index: number;
|
|
5
|
+
routeNames: string[];
|
|
6
|
+
history?: unknown[] | undefined;
|
|
7
|
+
routes: (Readonly<{
|
|
8
|
+
key: string;
|
|
9
|
+
name: string;
|
|
10
|
+
path?: string | undefined;
|
|
11
|
+
}> & Readonly<{
|
|
12
|
+
params?: Readonly<object | undefined>;
|
|
13
|
+
}> & {
|
|
14
|
+
state?: Readonly<any> | import("@react-navigation/core").PartialState<Readonly<any>> | undefined;
|
|
15
|
+
})[];
|
|
16
|
+
type: string;
|
|
17
|
+
stale: false;
|
|
18
|
+
}>, {}, import("@react-navigation/core").EventMapBase>) => null, Group: import("react").ComponentType<import("@react-navigation/core").RouteGroupConfig<import("@react-navigation/core").ParamListBase, {}>>;
|
|
19
|
+
//# sourceMappingURL=primitives.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"primitives.d.ts","sourceRoot":"","sources":["../src/primitives.tsx"],"names":[],"mappings":";AAIA,eAAO,MAAQ,MAAM;;;;;;;;;;;;;;;;iEAAE,KAAK,sIAAwC,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
/**
|
|
3
|
+
* Register and mount the root component using the predefined rendering
|
|
4
|
+
* method. This function ensures the Splash Screen and errors are handled correctly.
|
|
5
|
+
*/
|
|
6
|
+
export declare function renderRootComponent(Component: React.ComponentType<any>): void;
|
|
7
|
+
//# sourceMappingURL=renderRootComponent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"renderRootComponent.d.ts","sourceRoot":"","sources":["../src/renderRootComponent.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAgD1B;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,SAAS,EAAE,KAAK,CAAC,aAAa,CAAC,GAAG,CAAC,QA+BtE"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { getManifest } from "expo-router/_root";
|
|
2
|
+
import React from "react";
|
|
3
|
+
export declare function getStaticContent(location: URL): string;
|
|
4
|
+
export declare function Root({ children }: {
|
|
5
|
+
children: React.ReactNode;
|
|
6
|
+
}): JSX.Element;
|
|
7
|
+
export { getManifest };
|
|
8
|
+
//# sourceMappingURL=renderStaticContent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"renderStaticContent.d.ts","sourceRoot":"","sources":["../../src/static/renderStaticContent.tsx"],"names":[],"mappings":"AAOA,OAAY,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AACrD,OAAO,KAAK,MAAM,OAAO,CAAC;AAQ1B,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,GAAG,GAAG,MAAM,CA2CtD;AA2DD,wBAAgB,IAAI,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;CAAE,eAe/D;AAGD,OAAO,EAAE,WAAW,EAAE,CAAC"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
export declare function useServerState(): (Partial<Omit<Readonly<{
|
|
2
|
+
key: string;
|
|
3
|
+
index: number;
|
|
4
|
+
routeNames: string[];
|
|
5
|
+
history?: unknown[] | undefined;
|
|
6
|
+
routes: (Readonly<{
|
|
7
|
+
key: string;
|
|
8
|
+
name: string;
|
|
9
|
+
path?: string | undefined;
|
|
10
|
+
}> & Readonly<{
|
|
11
|
+
params?: Readonly<object | undefined>;
|
|
12
|
+
}> & {
|
|
13
|
+
state?: Readonly<any> | import("@react-navigation/routers").PartialState<Readonly<any>> | undefined;
|
|
14
|
+
})[];
|
|
15
|
+
type: string;
|
|
16
|
+
stale: false;
|
|
17
|
+
}>, "stale" | "routes">> & Readonly<{
|
|
18
|
+
stale?: true | undefined;
|
|
19
|
+
routes: import("@react-navigation/routers").PartialRoute<import("@react-navigation/routers").Route<string, object | undefined>>[];
|
|
20
|
+
}> & {
|
|
21
|
+
state?: (Partial<Omit<Readonly<{
|
|
22
|
+
key: string;
|
|
23
|
+
index: number;
|
|
24
|
+
routeNames: string[];
|
|
25
|
+
history?: unknown[] | undefined;
|
|
26
|
+
routes: (Readonly<{
|
|
27
|
+
key: string;
|
|
28
|
+
name: string;
|
|
29
|
+
path?: string | undefined;
|
|
30
|
+
}> & Readonly<{
|
|
31
|
+
params?: Readonly<object | undefined>;
|
|
32
|
+
}> & {
|
|
33
|
+
state?: Readonly<any> | import("@react-navigation/routers").PartialState<Readonly<any>> | undefined;
|
|
34
|
+
})[];
|
|
35
|
+
type: string;
|
|
36
|
+
stale: false;
|
|
37
|
+
}>, "stale" | "routes">> & Readonly<{
|
|
38
|
+
stale?: true | undefined;
|
|
39
|
+
routes: import("@react-navigation/routers").PartialRoute<import("@react-navigation/routers").Route<string, object | undefined>>[];
|
|
40
|
+
}> & any) | undefined;
|
|
41
|
+
}) | null | undefined;
|
|
42
|
+
//# sourceMappingURL=useServerState.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useServerState.d.ts","sourceRoot":"","sources":["../../src/static/useServerState.ts"],"names":[],"mappings":"AAQA,wBAAgB,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAmB7B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useServerState.native.d.ts","sourceRoot":"","sources":["../../src/static/useServerState.native.ts"],"names":[],"mappings":"AAAA,wBAAgB,cAAc,SAG7B"}
|
package/build/types.d.ts
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export interface RequireContext {
|
|
2
|
+
/** Return the keys that can be resolved. */
|
|
3
|
+
keys(): string[];
|
|
4
|
+
(id: string): any;
|
|
5
|
+
<T>(id: string): T;
|
|
6
|
+
/** **Unimplemented:** Return the module identifier for a user request. */
|
|
7
|
+
resolve(id: string): string;
|
|
8
|
+
/** **Unimplemented:** Readable identifier for the context module. */
|
|
9
|
+
id: string;
|
|
10
|
+
}
|
|
11
|
+
/** The list of input keys will become optional, everything else will remain the same. */
|
|
12
|
+
export type PickPartial<T, K extends keyof T> = Omit<T, K> & Partial<Pick<T, K>>;
|
|
13
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AACA,MAAM,WAAW,cAAc;IAC7B,4CAA4C;IAC5C,IAAI,IAAI,MAAM,EAAE,CAAC;IACjB,CAAC,EAAE,EAAE,MAAM,GAAG,GAAG,CAAC;IAClB,CAAC,CAAC,EAAE,EAAE,EAAE,MAAM,GAAG,CAAC,CAAC;IACnB,0EAA0E;IAC1E,OAAO,CAAC,EAAE,EAAE,MAAM,GAAG,MAAM,CAAC;IAC5B,qEAAqE;IACrE,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,yFAAyF;AACzF,MAAM,MAAM,WAAW,CAAC,CAAC,EAAE,CAAC,SAAS,MAAM,CAAC,IAAI,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACxD,OAAO,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
type EffectCallback = () => undefined | void | (() => void);
|
|
2
|
+
/**
|
|
3
|
+
* Hook to run an effect in a focused screen, similar to `React.useEffect`.
|
|
4
|
+
* This can be used to perform side-effects such as fetching data or subscribing to events.
|
|
5
|
+
* The passed callback should be wrapped in `React.useCallback` to avoid running the effect too often.
|
|
6
|
+
*
|
|
7
|
+
* @param callback Memoized callback containing the effect, should optionally return a cleanup function.
|
|
8
|
+
*/
|
|
9
|
+
export declare function useFocusEffect(effect: EffectCallback, do_not_pass_a_second_prop?: never): void;
|
|
10
|
+
export {};
|
|
11
|
+
//# sourceMappingURL=useFocusEffect.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useFocusEffect.d.ts","sourceRoot":"","sources":["../src/useFocusEffect.tsx"],"names":[],"mappings":"AAMA,KAAK,cAAc,GAAG,MAAM,SAAS,GAAG,IAAI,GAAG,CAAC,MAAM,IAAI,CAAC,CAAC;AAE5D;;;;;;GAMG;AACH,wBAAgB,cAAc,CAC5B,MAAM,EAAE,cAAc,EACtB,yBAAyB,CAAC,EAAE,KAAK,QAuGlC"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
export declare function useInitialRootState(): (Partial<Omit<Readonly<{
|
|
2
|
+
key: string;
|
|
3
|
+
index: number;
|
|
4
|
+
routeNames: string[];
|
|
5
|
+
history?: unknown[] | undefined;
|
|
6
|
+
routes: (Readonly<{
|
|
7
|
+
key: string;
|
|
8
|
+
name: string;
|
|
9
|
+
path?: string | undefined;
|
|
10
|
+
}> & Readonly<{
|
|
11
|
+
params?: Readonly<object | undefined>;
|
|
12
|
+
}> & {
|
|
13
|
+
state?: Readonly<any> | import("@react-navigation/routers").PartialState<Readonly<any>> | undefined;
|
|
14
|
+
})[];
|
|
15
|
+
type: string;
|
|
16
|
+
stale: false;
|
|
17
|
+
}>, "stale" | "routes">> & Readonly<{
|
|
18
|
+
stale?: true | undefined;
|
|
19
|
+
routes: import("@react-navigation/routers").PartialRoute<import("@react-navigation/routers").Route<string, object | undefined>>[];
|
|
20
|
+
}> & {
|
|
21
|
+
state?: (Partial<Omit<Readonly<{
|
|
22
|
+
key: string;
|
|
23
|
+
index: number;
|
|
24
|
+
routeNames: string[];
|
|
25
|
+
history?: unknown[] | undefined;
|
|
26
|
+
routes: (Readonly<{
|
|
27
|
+
key: string;
|
|
28
|
+
name: string;
|
|
29
|
+
path?: string | undefined;
|
|
30
|
+
}> & Readonly<{
|
|
31
|
+
params?: Readonly<object | undefined>;
|
|
32
|
+
}> & {
|
|
33
|
+
state?: Readonly<any> | import("@react-navigation/routers").PartialState<Readonly<any>> | undefined;
|
|
34
|
+
})[];
|
|
35
|
+
type: string;
|
|
36
|
+
stale: false;
|
|
37
|
+
}>, "stale" | "routes">> & Readonly<{
|
|
38
|
+
stale?: true | undefined;
|
|
39
|
+
routes: import("@react-navigation/routers").PartialRoute<import("@react-navigation/routers").Route<string, object | undefined>>[];
|
|
40
|
+
}> & any) | undefined;
|
|
41
|
+
}) | null | undefined;
|
|
42
|
+
//# sourceMappingURL=useInitialRootState.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useInitialRootState.d.ts","sourceRoot":"","sources":["../src/useInitialRootState.tsx"],"names":[],"mappings":"AAGA,wBAAgB,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAYlC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useInitialRootState.native.d.ts","sourceRoot":"","sources":["../src/useInitialRootState.native.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,EAAE,MAAM,yBAAyB,CAAC;AAehD,wBAAgB,mBAAmB,iBAgBlC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { State } from "./fork/getPathFromState";
|
|
3
|
+
export declare const InitialRootStateContext: React.Context<State | null>;
|
|
4
|
+
/** Fetch the initial root navigation state instantly on web and slightly delayed on native. */
|
|
5
|
+
export declare function useInitialRootStateContext(): State;
|
|
6
|
+
/**
|
|
7
|
+
* Unlike React Navigation, we statically know the config and always assume a URL is available.
|
|
8
|
+
* This enables us to always know the root state.
|
|
9
|
+
*/
|
|
10
|
+
export declare function InitialRootStateProvider({ children, }: {
|
|
11
|
+
children: React.ReactNode;
|
|
12
|
+
}): JSX.Element | null;
|
|
13
|
+
//# sourceMappingURL=useInitialRootStateContext.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useInitialRootStateContext.d.ts","sourceRoot":"","sources":["../src/useInitialRootStateContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoC,MAAM,OAAO,CAAC;AAEzD,OAAO,EAAE,KAAK,EAAE,MAAM,yBAAyB,CAAC;AAGhD,eAAO,MAAM,uBAAuB,6BAAoC,CAAC;AAMzE,+FAA+F;AAC/F,wBAAgB,0BAA0B,UAQzC;AAED;;;GAGG;AACH,wBAAgB,wBAAwB,CAAC,EACvC,QAAQ,GACT,EAAE;IACD,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,sBAeA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { NavigationProp } from "@react-navigation/native";
|
|
2
|
+
/**
|
|
3
|
+
* Return the navigation object for the current route.
|
|
4
|
+
* @param parent Provide an absolute path like `/(root)` to the parent route or a relative path like `../../` to the parent route.
|
|
5
|
+
* @returns the navigation object for the provided route.
|
|
6
|
+
*/
|
|
7
|
+
export declare function useNavigation(parent?: string): NavigationProp<ReactNavigation.RootParamList>;
|
|
8
|
+
export declare function resolveParentId(contextKey: string, parentId?: string | null): string | null;
|
|
9
|
+
//# sourceMappingURL=useNavigation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useNavigation.d.ts","sourceRoot":"","sources":["../src/useNavigation.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,cAAc,EACf,MAAM,0BAA0B,CAAC;AAMlC;;;;GAIG;AACH,wBAAgB,aAAa,CAC3B,MAAM,CAAC,EAAE,MAAM,GACd,cAAc,CAAC,eAAe,CAAC,aAAa,CAAC,CAgC/C;AAED,wBAAgB,eAAe,CAC7B,UAAU,EAAE,MAAM,EAClB,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,GACvB,MAAM,GAAG,IAAI,CASf"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { NavigationContainerRefWithCurrent } from "@react-navigation/native";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { State } from "./fork/getPathFromState";
|
|
4
|
+
export declare const RootNavigationRef: React.Context<{
|
|
5
|
+
ref: NavigationContainerRefWithCurrent<ReactNavigation.RootParamList> | null;
|
|
6
|
+
}>;
|
|
7
|
+
export declare function useRootNavigation(): NavigationContainerRefWithCurrent<ReactNavigation.RootParamList> | null;
|
|
8
|
+
export declare function useRootNavigationState(): State | undefined;
|
|
9
|
+
//# sourceMappingURL=useRootNavigation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useRootNavigation.d.ts","sourceRoot":"","sources":["../src/useRootNavigation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iCAAiC,EAAE,MAAM,0BAA0B,CAAC;AAC7E,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,KAAK,EAAE,MAAM,yBAAyB,CAAC;AAEhD,eAAO,MAAM,iBAAiB;SACvB,kCAAkC,gBAAgB,aAAa,CAAC,GAAG,IAAI;EAC7D,CAAC;AAMlB,wBAAgB,iBAAiB,4EAQhC;AAED,wBAAgB,sBAAsB,IAAI,KAAK,GAAG,SAAS,CAkB1D"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { RouteNode } from "./Route";
|
|
3
|
+
import { RequireContext } from "./types";
|
|
4
|
+
export declare const RootRouteNodeContext: React.Context<RouteNode | null>;
|
|
5
|
+
export declare function useRootRouteNodeContext(): RouteNode;
|
|
6
|
+
/** Provide the require context as normalized routes. */
|
|
7
|
+
export declare function RootRouteNodeProvider({ context, children, }: {
|
|
8
|
+
context: RequireContext;
|
|
9
|
+
children: React.ReactNode;
|
|
10
|
+
}): JSX.Element;
|
|
11
|
+
//# sourceMappingURL=useRootRouteNodeContext.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useRootRouteNodeContext.d.ts","sourceRoot":"","sources":["../src/useRootRouteNodeContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA6C,MAAM,OAAO,CAAC;AAElE,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEpC,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAGzC,eAAO,MAAM,oBAAoB,iCAAwC,CAAC;AAM1E,wBAAgB,uBAAuB,cAQtC;AAED,wDAAwD;AACxD,wBAAgB,qBAAqB,CAAC,EACpC,OAAO,EACP,QAAQ,GACT,EAAE;IACD,OAAO,EAAE,cAAc,CAAC;IACxB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,eASA"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { RouteNode } from "./Route";
|
|
3
|
+
export type ScreenProps<TOptions extends Record<string, any> = Record<string, any>> = {
|
|
4
|
+
/** Name is required when used inside a Layout component. */
|
|
5
|
+
name?: string;
|
|
6
|
+
/**
|
|
7
|
+
* Redirect to the nearest sibling route.
|
|
8
|
+
* If all children are redirect={true}, the layout will render `null` as there are no children to render.
|
|
9
|
+
*/
|
|
10
|
+
redirect?: boolean;
|
|
11
|
+
initialParams?: {
|
|
12
|
+
[key: string]: any;
|
|
13
|
+
};
|
|
14
|
+
options?: TOptions;
|
|
15
|
+
listeners?: any;
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* @returns React Navigation screens sorted by the `route` property.
|
|
19
|
+
*/
|
|
20
|
+
export declare function useSortedScreens(order: ScreenProps[]): React.ReactNode[];
|
|
21
|
+
/** Wrap the component with various enhancements and add access to child routes. */
|
|
22
|
+
export declare function getQualifiedRouteComponent(value: RouteNode): React.ComponentType<any> | React.ForwardRefExoticComponent<Pick<any, string | number | symbol> & React.RefAttributes<unknown>>;
|
|
23
|
+
/** @returns a function which provides a screen id that matches the dynamic route name in params. */
|
|
24
|
+
export declare function createGetIdForRoute(route: Pick<RouteNode, "dynamic" | "route">): (({ params }: {
|
|
25
|
+
params?: Record<string, any> | undefined;
|
|
26
|
+
}) => string | undefined) | undefined;
|
|
27
|
+
//# sourceMappingURL=useScreens.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useScreens.d.ts","sourceRoot":"","sources":["../src/useScreens.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAGL,SAAS,EAGV,MAAM,SAAS,CAAC;AAIjB,MAAM,MAAM,WAAW,CACrB,QAAQ,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,IACxD;IACF,4DAA4D;IAC5D,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,aAAa,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAC;IACvC,OAAO,CAAC,EAAE,QAAQ,CAAC;IAGnB,SAAS,CAAC,EAAE,GAAG,CAAC;CACjB,CAAC;AA8DF;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,WAAW,EAAE,GAAG,KAAK,CAAC,SAAS,EAAE,CAUxE;AAMD,mFAAmF;AACnF,wBAAgB,0BAA0B,CAAC,KAAK,EAAE,SAAS,kIAgD1D;AAED,oGAAoG;AACpG,wBAAgB,mBAAmB,CACjC,KAAK,EAAE,IAAI,CAAC,SAAS,EAAE,SAAS,GAAG,OAAO,CAAC;;sCA0B5C"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { RequireContext } from "../types";
|
|
2
|
+
export declare function createMockContextModule(map?: Record<string, Record<string, any>>): RequireContext;
|
|
3
|
+
export declare function configFromFs(map?: (string | [string, object])[]): {
|
|
4
|
+
initialRouteName?: string | undefined;
|
|
5
|
+
screens: Record<string, string | {
|
|
6
|
+
path: string;
|
|
7
|
+
screens: Record<string, string | any>;
|
|
8
|
+
initialRouteName?: string | undefined;
|
|
9
|
+
}>;
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=mockState.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mockState.d.ts","sourceRoot":"","sources":["../../src/utils/mockState.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAE1C,wBAAgB,uBAAuB,CACrC,GAAG,GAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAM,kBAS9C;AAED,wBAAgB,YAAY,CAAC,GAAG,GAAE,CAAC,MAAM,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,EAAO;;;;;;;EAcnE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ErrorBoundary.d.ts","sourceRoot":"","sources":["../../src/views/ErrorBoundary.tsx"],"names":[],"mappings":";AAKA,OAAO,EAAE,kBAAkB,EAAE,MAAM,OAAO,CAAC;AAG3C,wBAAgB,aAAa,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE,kBAAkB,eAkEjE"}
|
|
@@ -0,0 +1,280 @@
|
|
|
1
|
+
import { RouterFactory, useNavigationBuilder } from "@react-navigation/native";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
type NavigatorTypes = ReturnType<typeof useNavigationBuilder>;
|
|
4
|
+
export declare const NavigatorContext: React.Context<{
|
|
5
|
+
contextKey: string;
|
|
6
|
+
state: NavigatorTypes["state"];
|
|
7
|
+
navigation: NavigatorTypes["navigation"];
|
|
8
|
+
descriptors: NavigatorTypes["descriptors"];
|
|
9
|
+
router: RouterFactory<any, any, any>;
|
|
10
|
+
} | null>;
|
|
11
|
+
export type NavigatorProps = {
|
|
12
|
+
initialRouteName?: Parameters<typeof useNavigationBuilder>[1]["initialRouteName"];
|
|
13
|
+
screenOptions?: Parameters<typeof useNavigationBuilder>[1]["screenOptions"];
|
|
14
|
+
children?: Parameters<typeof useNavigationBuilder>[1]["children"];
|
|
15
|
+
router?: Parameters<typeof useNavigationBuilder>[0];
|
|
16
|
+
};
|
|
17
|
+
/** An unstyled custom navigator. Good for basic web layouts */
|
|
18
|
+
export declare function Navigator({ initialRouteName, screenOptions, children, router, }: NavigatorProps): JSX.Element | null;
|
|
19
|
+
export declare namespace Navigator {
|
|
20
|
+
var Slot: typeof import("./Navigator").Slot;
|
|
21
|
+
var useContext: typeof useNavigatorContext;
|
|
22
|
+
var Screen: typeof import("./Screen").Screen;
|
|
23
|
+
}
|
|
24
|
+
export declare function useNavigatorContext(): {
|
|
25
|
+
contextKey: string;
|
|
26
|
+
state: Readonly<{
|
|
27
|
+
key: string;
|
|
28
|
+
index: number;
|
|
29
|
+
routeNames: string[];
|
|
30
|
+
history?: unknown[] | undefined;
|
|
31
|
+
routes: (Readonly<{
|
|
32
|
+
key: string;
|
|
33
|
+
name: string;
|
|
34
|
+
path?: string | undefined;
|
|
35
|
+
}> & Readonly<{
|
|
36
|
+
params?: Readonly<object | undefined>;
|
|
37
|
+
}> & {
|
|
38
|
+
state?: Readonly<any> | import("@react-navigation/native").PartialState<Readonly<any>> | undefined;
|
|
39
|
+
})[];
|
|
40
|
+
type: string;
|
|
41
|
+
stale: false;
|
|
42
|
+
}>;
|
|
43
|
+
navigation: {
|
|
44
|
+
dispatch(action: Readonly<{
|
|
45
|
+
type: string;
|
|
46
|
+
payload?: object | undefined;
|
|
47
|
+
source?: string | undefined;
|
|
48
|
+
target?: string | undefined;
|
|
49
|
+
}> | ((state: Readonly<{
|
|
50
|
+
key: string;
|
|
51
|
+
index: number;
|
|
52
|
+
routeNames: string[];
|
|
53
|
+
history?: unknown[] | undefined;
|
|
54
|
+
routes: (Readonly<{
|
|
55
|
+
key: string;
|
|
56
|
+
name: string;
|
|
57
|
+
path?: string | undefined;
|
|
58
|
+
}> & Readonly<{
|
|
59
|
+
params?: Readonly<object | undefined>;
|
|
60
|
+
}> & {
|
|
61
|
+
state?: Readonly<any> | import("@react-navigation/native").PartialState<Readonly<any>> | undefined;
|
|
62
|
+
})[];
|
|
63
|
+
type: string;
|
|
64
|
+
stale: false;
|
|
65
|
+
}>) => Readonly<{
|
|
66
|
+
type: string;
|
|
67
|
+
payload?: object | undefined;
|
|
68
|
+
source?: string | undefined;
|
|
69
|
+
target?: string | undefined;
|
|
70
|
+
}>)): void;
|
|
71
|
+
navigate<RouteName extends string>(...args: RouteName extends unknown ? [screen: RouteName] | [screen: RouteName, params: object | undefined] : never): void;
|
|
72
|
+
navigate<RouteName_1 extends string>(options: RouteName_1 extends unknown ? {
|
|
73
|
+
key: string;
|
|
74
|
+
params?: object | undefined;
|
|
75
|
+
merge?: boolean | undefined;
|
|
76
|
+
} | {
|
|
77
|
+
name: RouteName_1;
|
|
78
|
+
key?: string | undefined;
|
|
79
|
+
params: object | undefined;
|
|
80
|
+
merge?: boolean | undefined;
|
|
81
|
+
} : never): void;
|
|
82
|
+
reset(state: Readonly<{
|
|
83
|
+
key: string;
|
|
84
|
+
index: number;
|
|
85
|
+
routeNames: string[];
|
|
86
|
+
history?: unknown[] | undefined;
|
|
87
|
+
routes: (Readonly<{
|
|
88
|
+
key: string;
|
|
89
|
+
name: string;
|
|
90
|
+
path?: string | undefined;
|
|
91
|
+
}> & Readonly<{
|
|
92
|
+
params?: Readonly<object | undefined>;
|
|
93
|
+
}> & {
|
|
94
|
+
state?: Readonly<any> | import("@react-navigation/native").PartialState<Readonly<any>> | undefined;
|
|
95
|
+
})[];
|
|
96
|
+
type: string;
|
|
97
|
+
stale: false;
|
|
98
|
+
}> | import("@react-navigation/native").PartialState<Readonly<{
|
|
99
|
+
key: string;
|
|
100
|
+
index: number;
|
|
101
|
+
routeNames: string[];
|
|
102
|
+
history?: unknown[] | undefined;
|
|
103
|
+
routes: (Readonly<{
|
|
104
|
+
key: string;
|
|
105
|
+
name: string;
|
|
106
|
+
path?: string | undefined;
|
|
107
|
+
}> & Readonly<{
|
|
108
|
+
params?: Readonly<object | undefined>;
|
|
109
|
+
}> & {
|
|
110
|
+
state?: Readonly<any> | import("@react-navigation/native").PartialState<Readonly<any>> | undefined;
|
|
111
|
+
})[];
|
|
112
|
+
type: string;
|
|
113
|
+
/** Used to configure route settings. */
|
|
114
|
+
stale: false;
|
|
115
|
+
}>>): void;
|
|
116
|
+
goBack(): void;
|
|
117
|
+
isFocused(): boolean;
|
|
118
|
+
canGoBack(): boolean;
|
|
119
|
+
getId(): string | undefined;
|
|
120
|
+
getParent<T = import("@react-navigation/native").NavigationHelpers<import("@react-navigation/native").ParamListBase, {}> | undefined>(id?: string | undefined): T;
|
|
121
|
+
getState(): Readonly<{
|
|
122
|
+
key: string;
|
|
123
|
+
index: number;
|
|
124
|
+
routeNames: string[];
|
|
125
|
+
history?: unknown[] | undefined;
|
|
126
|
+
routes: (Readonly<{
|
|
127
|
+
key: string;
|
|
128
|
+
name: string;
|
|
129
|
+
path?: string | undefined;
|
|
130
|
+
}> & Readonly<{
|
|
131
|
+
params?: Readonly<object | undefined>;
|
|
132
|
+
}> & {
|
|
133
|
+
state?: Readonly<any> | import("@react-navigation/native").PartialState<Readonly<any>> | undefined;
|
|
134
|
+
})[];
|
|
135
|
+
type: string;
|
|
136
|
+
stale: false;
|
|
137
|
+
}>;
|
|
138
|
+
} & import("@react-navigation/native").PrivateValueStore<[import("@react-navigation/native").ParamListBase, unknown, unknown]> & import("@react-navigation/native").EventEmitter<Record<string, any>> & {
|
|
139
|
+
setParams<RouteName_2 extends string>(params: Partial<object | undefined>): void;
|
|
140
|
+
} & Record<string, () => void>;
|
|
141
|
+
descriptors: Record<string, import("@react-navigation/native").Descriptor<{}, Omit<{
|
|
142
|
+
dispatch(action: Readonly<{
|
|
143
|
+
type: string;
|
|
144
|
+
payload?: object | undefined;
|
|
145
|
+
source?: string | undefined;
|
|
146
|
+
target?: string | undefined;
|
|
147
|
+
}> | ((state: Readonly<{
|
|
148
|
+
key: string;
|
|
149
|
+
index: number;
|
|
150
|
+
routeNames: string[];
|
|
151
|
+
history?: unknown[] | undefined;
|
|
152
|
+
routes: (Readonly<{
|
|
153
|
+
key: string;
|
|
154
|
+
name: string;
|
|
155
|
+
path?: string | undefined;
|
|
156
|
+
}> & Readonly<{
|
|
157
|
+
params?: Readonly<object | undefined>;
|
|
158
|
+
}> & {
|
|
159
|
+
state?: Readonly<any> | import("@react-navigation/native").PartialState<Readonly<any>> | undefined;
|
|
160
|
+
})[];
|
|
161
|
+
type: string;
|
|
162
|
+
stale: false;
|
|
163
|
+
}>) => Readonly<{
|
|
164
|
+
type: string;
|
|
165
|
+
payload?: object | undefined;
|
|
166
|
+
source?: string | undefined;
|
|
167
|
+
target?: string | undefined;
|
|
168
|
+
}>)): void;
|
|
169
|
+
navigate<RouteName_3 extends string>(...args: RouteName_3 extends unknown ? [screen: RouteName_3] | [screen: RouteName_3, params: object | undefined] : never): void;
|
|
170
|
+
navigate<RouteName_1_1 extends string>(options: RouteName_1_1 extends unknown ? {
|
|
171
|
+
key: string;
|
|
172
|
+
params?: object | undefined;
|
|
173
|
+
merge?: boolean | undefined;
|
|
174
|
+
} | {
|
|
175
|
+
name: RouteName_1_1;
|
|
176
|
+
key?: string | undefined;
|
|
177
|
+
params: object | undefined;
|
|
178
|
+
merge?: boolean | undefined;
|
|
179
|
+
} : never): void;
|
|
180
|
+
reset(state: Readonly<{
|
|
181
|
+
key: string;
|
|
182
|
+
index: number;
|
|
183
|
+
routeNames: string[];
|
|
184
|
+
history?: unknown[] | undefined;
|
|
185
|
+
routes: (Readonly<{
|
|
186
|
+
key: string;
|
|
187
|
+
name: string;
|
|
188
|
+
path?: string | undefined;
|
|
189
|
+
}> & Readonly<{
|
|
190
|
+
params?: Readonly<object | undefined>;
|
|
191
|
+
}> & {
|
|
192
|
+
state?: Readonly<any> | import("@react-navigation/native").PartialState<Readonly<any>> | undefined;
|
|
193
|
+
})[];
|
|
194
|
+
type: string;
|
|
195
|
+
stale: false;
|
|
196
|
+
}> | import("@react-navigation/native").PartialState<Readonly<{
|
|
197
|
+
key: string;
|
|
198
|
+
index: number;
|
|
199
|
+
routeNames: string[];
|
|
200
|
+
history?: unknown[] | undefined;
|
|
201
|
+
routes: (Readonly<{
|
|
202
|
+
key: string;
|
|
203
|
+
name: string;
|
|
204
|
+
path?: string | undefined;
|
|
205
|
+
}> & Readonly<{
|
|
206
|
+
params?: Readonly<object | undefined>;
|
|
207
|
+
}> & {
|
|
208
|
+
state?: Readonly<any> | import("@react-navigation/native").PartialState<Readonly<any>> | undefined;
|
|
209
|
+
})[];
|
|
210
|
+
type: string;
|
|
211
|
+
stale: false;
|
|
212
|
+
}>>): void;
|
|
213
|
+
goBack(): void;
|
|
214
|
+
isFocused(): boolean;
|
|
215
|
+
canGoBack(): boolean;
|
|
216
|
+
getId(): string | undefined;
|
|
217
|
+
getParent<T_1 = import("@react-navigation/native").NavigationHelpers<import("@react-navigation/native").ParamListBase, {}> | undefined>(id?: string | undefined): T_1;
|
|
218
|
+
getState(): Readonly<{
|
|
219
|
+
key: string;
|
|
220
|
+
index: number;
|
|
221
|
+
routeNames: string[];
|
|
222
|
+
history?: unknown[] | undefined;
|
|
223
|
+
routes: (Readonly<{
|
|
224
|
+
key: string;
|
|
225
|
+
name: string;
|
|
226
|
+
path?: string | undefined;
|
|
227
|
+
}> & Readonly<{
|
|
228
|
+
params?: Readonly<object | undefined>;
|
|
229
|
+
}> & {
|
|
230
|
+
state?: Readonly<any> | import("@react-navigation/native").PartialState<Readonly<any>> | undefined;
|
|
231
|
+
})[];
|
|
232
|
+
type: string;
|
|
233
|
+
stale: false;
|
|
234
|
+
}>;
|
|
235
|
+
} & import("@react-navigation/native").PrivateValueStore<[import("@react-navigation/native").ParamListBase, unknown, unknown]>, "getParent"> & {
|
|
236
|
+
getParent<T_1 = import("@react-navigation/native").NavigationProp<import("@react-navigation/native").ParamListBase, string, undefined, Readonly<{
|
|
237
|
+
key: string;
|
|
238
|
+
index: number;
|
|
239
|
+
routeNames: string[];
|
|
240
|
+
history?: unknown[] | undefined;
|
|
241
|
+
routes: (Readonly<{
|
|
242
|
+
key: string;
|
|
243
|
+
name: string;
|
|
244
|
+
path?: string | undefined;
|
|
245
|
+
}> & Readonly<{
|
|
246
|
+
params?: Readonly<object | undefined>;
|
|
247
|
+
}> & {
|
|
248
|
+
state?: Readonly<any> | import("@react-navigation/native").PartialState<Readonly<any>> | undefined;
|
|
249
|
+
})[];
|
|
250
|
+
type: string;
|
|
251
|
+
stale: false;
|
|
252
|
+
}>, {}, {}> | undefined>(id?: string | undefined): T_1;
|
|
253
|
+
setParams(params: Partial<object | undefined>): void;
|
|
254
|
+
setOptions(options: Partial<{}>): void;
|
|
255
|
+
} & import("@react-navigation/native").EventConsumer<Record<string, any> & import("@react-navigation/native").EventMapCore<Readonly<{
|
|
256
|
+
key: string;
|
|
257
|
+
index: number;
|
|
258
|
+
routeNames: string[];
|
|
259
|
+
history?: unknown[] | undefined;
|
|
260
|
+
routes: (Readonly<{
|
|
261
|
+
key: string;
|
|
262
|
+
name: string;
|
|
263
|
+
path?: string | undefined;
|
|
264
|
+
}> & Readonly<{
|
|
265
|
+
params?: Readonly<object | undefined>;
|
|
266
|
+
}> & {
|
|
267
|
+
state?: Readonly<any> | import("@react-navigation/native").PartialState<Readonly<any>> | undefined;
|
|
268
|
+
})[];
|
|
269
|
+
type: string;
|
|
270
|
+
stale: false;
|
|
271
|
+
}>>> & import("@react-navigation/native").PrivateValueStore<[import("@react-navigation/native").ParamListBase, string, Record<string, any>]> & Record<string, () => void>, import("@react-navigation/native").RouteProp<import("@react-navigation/native").ParamListBase, string>>>;
|
|
272
|
+
router: RouterFactory<any, any, any>;
|
|
273
|
+
};
|
|
274
|
+
export declare function useSlot(): JSX.Element | null;
|
|
275
|
+
/** Renders the currently selected content. */
|
|
276
|
+
export declare function Slot(props: Omit<NavigatorProps, "children">): JSX.Element;
|
|
277
|
+
export declare function QualifiedSlot(): JSX.Element | null;
|
|
278
|
+
export declare function DefaultNavigator(): JSX.Element;
|
|
279
|
+
export {};
|
|
280
|
+
//# sourceMappingURL=Navigator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Navigator.d.ts","sourceRoot":"","sources":["../../src/views/Navigator.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EAEb,oBAAoB,EACrB,MAAM,0BAA0B,CAAC;AAClC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAO/B,KAAK,cAAc,GAAG,UAAU,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAG9D,eAAO,MAAM,gBAAgB;gBACf,MAAM;WACX,cAAc,CAAC,OAAO,CAAC;gBAClB,cAAc,CAAC,YAAY,CAAC;iBAC3B,cAAc,CAAC,aAAa,CAAC;YAClC,cAAc,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC;SACvB,CAAC;AAMhB,MAAM,MAAM,cAAc,GAAG;IAC3B,gBAAgB,CAAC,EAAE,UAAU,CAC3B,OAAO,oBAAoB,CAC5B,CAAC,CAAC,CAAC,CAAC,kBAAkB,CAAC,CAAC;IACzB,aAAa,CAAC,EAAE,UAAU,CAAC,OAAO,oBAAoB,CAAC,CAAC,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC;IAC5E,QAAQ,CAAC,EAAE,UAAU,CAAC,OAAO,oBAAoB,CAAC,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC;IAClE,MAAM,CAAC,EAAE,UAAU,CAAC,OAAO,oBAAoB,CAAC,CAAC,CAAC,CAAC,CAAC;CACrD,CAAC;AAEF,+DAA+D;AAC/D,wBAAgB,SAAS,CAAC,EACxB,gBAAgB,EAChB,aAAa,EACb,QAAQ,EACR,MAAM,GACP,EAAE,cAAc,sBA2BhB;yBAhCe,SAAS;;;;;AAkEzB,wBAAgB,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAwDnC,wCAAwC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAlDvC;AAED,wBAAgB,OAAO,uBActB;AAED,8CAA8C;AAC9C,wBAAgB,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,cAAc,EAAE,UAAU,CAAC,eAc3D;AAED,wBAAgB,aAAa,uBAE5B;AAED,wBAAgB,gBAAgB,gBAM/B"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export type ScreenProps<TOptions extends Record<string, any> = Record<string, any>> = {
|
|
2
|
+
/**
|
|
3
|
+
* Name is required when used inside a Layout component.
|
|
4
|
+
*
|
|
5
|
+
* When used in a route, this can be an absolute path like `/(root)` to the parent route or a relative path like `../../` to the parent route.
|
|
6
|
+
* This should not be used inside of a Layout component.
|
|
7
|
+
* @example `/(root)` maps to a layout route `/app/(root).tsx`.
|
|
8
|
+
*/
|
|
9
|
+
name?: string;
|
|
10
|
+
/** Should redirect away from this screen. */
|
|
11
|
+
redirect?: boolean;
|
|
12
|
+
initialParams?: {
|
|
13
|
+
[key: string]: any;
|
|
14
|
+
};
|
|
15
|
+
options?: TOptions;
|
|
16
|
+
};
|
|
17
|
+
/** Component for setting the current screen's options dynamically. */
|
|
18
|
+
export declare function Screen<TOptions extends object = object>({ name, redirect, options, }: ScreenProps<TOptions>): null;
|
|
19
|
+
//# sourceMappingURL=Screen.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Screen.d.ts","sourceRoot":"","sources":["../../src/views/Screen.tsx"],"names":[],"mappings":"AAIA,MAAM,MAAM,WAAW,CACrB,QAAQ,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,IACxD;IACF;;;;;;OAMG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd,6CAA6C;IAC7C,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB,aAAa,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAC;IACvC,OAAO,CAAC,EAAE,QAAQ,CAAC;CACpB,CAAC;AAEF,sEAAsE;AACtE,wBAAgB,MAAM,CAAC,QAAQ,SAAS,MAAM,GAAG,MAAM,EAAE,EACvD,IAAI,EACJ,QAAQ,EACR,OAAO,GACR,EAAE,WAAW,CAAC,QAAQ,CAAC,QAmBvB"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { NativeStackNavigationOptions } from "@react-navigation/native-stack";
|
|
3
|
+
export declare function getNavOptions(): NativeStackNavigationOptions;
|
|
4
|
+
export declare function Sitemap(): JSX.Element;
|
|
5
|
+
//# sourceMappingURL=Sitemap.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Sitemap.d.ts","sourceRoot":"","sources":["../../src/views/Sitemap.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,4BAA4B,EAAE,MAAM,gCAAgC,CAAC;AA2B9E,wBAAgB,aAAa,IAAI,4BAA4B,CAqB5D;AAED,wBAAgB,OAAO,gBA6BtB"}
|