expo-router 1.2.1 → 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 +5 -4
- 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/metro-require.d.ts +52 -0
- package/package.json +9 -6
- package/src/NavigationContainer.tsx +1 -1
- package/src/fork/getPathFromState.ts +8 -11
- 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 -13
- package/src/link/useLinkToPath.ts +3 -8
- package/src/link/useLinkToPathProps.tsx +15 -9
- package/src/link/useLinkingContext.ts +16 -5
- package/src/link/useRouter.ts +2 -5
- package/src/static/renderStaticContent.tsx +8 -6
- package/src/ts-declarations.d.ts +1 -0
- package/src/useFocusEffect.tsx +1 -1
package/_root.tsx
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
|
+
/// <reference path="metro-require.d.ts" />
|
|
2
|
+
|
|
1
3
|
import "@expo/metro-runtime";
|
|
2
|
-
import React from "react";
|
|
3
4
|
|
|
4
|
-
import
|
|
5
|
+
import React from "react";
|
|
5
6
|
|
|
7
|
+
import { ExpoRoot } from "./src";
|
|
6
8
|
import { getNavigationConfig } from "./src/getLinkingConfig";
|
|
7
9
|
import { getRoutes } from "./src/getRoutes";
|
|
8
10
|
|
|
9
|
-
|
|
10
|
-
const ctx = require.context(process.env.EXPO_ROUTER_APP_ROOT);
|
|
11
|
+
const ctx = require.context(process.env.EXPO_ROUTER_APP_ROOT!);
|
|
11
12
|
|
|
12
13
|
// Must be exported or Fast Refresh won't update the context >:[
|
|
13
14
|
export default function ExpoRouterRoot() {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ExpoRoot.d.ts","sourceRoot":"","sources":["../src/ExpoRoot.tsx"],"names":[],"mappings":";AAMA,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AA6BzC,wBAAgB,QAAQ,CAAC,EAAE,OAAO,EAAE,EAAE;IAAE,OAAO,EAAE,cAAc,CAAA;CAAE,eAahE"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
type SearchParams = Record<string, string | string[]>;
|
|
3
|
+
type UrlObject = {
|
|
4
|
+
pathname: string;
|
|
5
|
+
readonly params: SearchParams;
|
|
6
|
+
segments: string[];
|
|
7
|
+
};
|
|
8
|
+
export declare function compareUrlSearchParams(a: SearchParams, b: SearchParams): boolean;
|
|
9
|
+
export declare function getNormalizedStatePath({ path: statePath, params, }: {
|
|
10
|
+
path: string;
|
|
11
|
+
params: any;
|
|
12
|
+
}): Omit<UrlObject, "pathname">;
|
|
13
|
+
export declare function LocationProvider({ children }: {
|
|
14
|
+
children: React.ReactNode;
|
|
15
|
+
}): JSX.Element;
|
|
16
|
+
/** @returns Currently selected route as a normalized string without search parameters. e.g. `/acme?foo=bar` -> `/acme`. Segments will be normalized: `/[id]?id=normal` -> `/normal` */
|
|
17
|
+
export declare function usePathname(): string;
|
|
18
|
+
/** @returns Current URL Search Parameters. */
|
|
19
|
+
export declare function useSearchParams<TParams extends SearchParams = SearchParams>(): Partial<TParams>;
|
|
20
|
+
/** @returns Current URL Search Parameters that only update when the path matches the current route. */
|
|
21
|
+
export declare function useLocalSearchParams<TParams extends SearchParams = SearchParams>(): Partial<TParams>;
|
|
22
|
+
/** @returns Array of selected segments. */
|
|
23
|
+
export declare function useSegments(): string[];
|
|
24
|
+
export {};
|
|
25
|
+
//# sourceMappingURL=LocationProvider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LocationProvider.d.ts","sourceRoot":"","sources":["../src/LocationProvider.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAY1B,KAAK,YAAY,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC,CAAC;AAEtD,KAAK,SAAS,GAAG;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,MAAM,EAAE,YAAY,CAAC;IAC9B,QAAQ,EAAE,MAAM,EAAE,CAAC;CACpB,CAAC;AA0BF,wBAAgB,sBAAsB,CACpC,CAAC,EAAE,YAAY,EACf,CAAC,EAAE,YAAY,GACd,OAAO,CAET;AAwFD,wBAAgB,sBAAsB,CAAC,EACrC,IAAI,EAAE,SAAS,EACf,MAAM,GACP,EAAE;IACD,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,GAAG,CAAC;CACb,GAAG,IAAI,CAAC,SAAS,EAAE,UAAU,CAAC,CAgB9B;AAQD,wBAAgB,gBAAgB,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;CAAE,eAM3E;AAcD,uLAAuL;AACvL,wBAAgB,WAAW,IAAI,MAAM,CAEpC;AAED,8CAA8C;AAC9C,wBAAgB,eAAe,CAC7B,OAAO,SAAS,YAAY,GAAG,YAAY,KACxC,OAAO,CAAC,OAAO,CAAC,CAEpB;AAED,uGAAuG;AACvG,wBAAgB,oBAAoB,CAClC,OAAO,SAAS,YAAY,GAAG,YAAY,KACxC,OAAO,CAAC,OAAO,CAAC,CAEpB;AAED,2CAA2C;AAC3C,wBAAgB,WAAW,IAAI,MAAM,EAAE,CAEtC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
/** Get the root navigation container ref. */
|
|
3
|
+
export declare function getNavigationContainerRef(): import("@react-navigation/native").NavigationContainerRefWithCurrent<Record<string, unknown>>;
|
|
4
|
+
/** react-navigation `NavigationContainer` with automatic `linking` prop generated from the routes context. */
|
|
5
|
+
export declare function NavigationContainer(props: {
|
|
6
|
+
children: React.ReactNode;
|
|
7
|
+
}): JSX.Element;
|
|
8
|
+
//# sourceMappingURL=NavigationContainer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NavigationContainer.d.ts","sourceRoot":"","sources":["../src/NavigationContainer.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAU1B,6CAA6C;AAC7C,wBAAgB,yBAAyB,kGAExC;AAED,8GAA8G;AAC9G,wBAAgB,mBAAmB,CAAC,KAAK,EAAE;IAAE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;CAAE,eAyBvE"}
|
package/build/Route.d.ts
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
export type DynamicConvention = {
|
|
3
|
+
name: string;
|
|
4
|
+
deep: boolean;
|
|
5
|
+
};
|
|
6
|
+
export type RouteNode = {
|
|
7
|
+
/** Load a route into memory. Returns the exports from a route. */
|
|
8
|
+
loadRoute: () => any;
|
|
9
|
+
/** Loaded initial route name. */
|
|
10
|
+
initialRouteName?: string;
|
|
11
|
+
/** nested routes */
|
|
12
|
+
children: RouteNode[];
|
|
13
|
+
/** Is the route a dynamic path */
|
|
14
|
+
dynamic: null | DynamicConvention[];
|
|
15
|
+
/** `index`, `error-boundary`, etc. */
|
|
16
|
+
route: string;
|
|
17
|
+
/** Context Module ID, used for matching children. */
|
|
18
|
+
contextKey: string;
|
|
19
|
+
/** Added in-memory */
|
|
20
|
+
generated?: boolean;
|
|
21
|
+
/** Internal screens like the directory or the auto 404 should be marked as internal. */
|
|
22
|
+
internal?: boolean;
|
|
23
|
+
};
|
|
24
|
+
/** Return the RouteNode at the current contextual boundary. */
|
|
25
|
+
export declare function useRouteNode(): RouteNode | null;
|
|
26
|
+
export declare function useContextKey(): string;
|
|
27
|
+
/** Provides the matching routes and filename to the children. */
|
|
28
|
+
export declare function Route({ children, node, }: {
|
|
29
|
+
children: ReactNode;
|
|
30
|
+
node: RouteNode;
|
|
31
|
+
}): JSX.Element;
|
|
32
|
+
export declare function sortRoutesWithInitial(initialRouteName?: string): (a: RouteNode, b: RouteNode) => number;
|
|
33
|
+
export declare function sortRoutes(a: RouteNode, b: RouteNode): number;
|
|
34
|
+
//# sourceMappingURL=Route.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Route.d.ts","sourceRoot":"","sources":["../src/Route.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,SAAS,EAAc,MAAM,OAAO,CAAC;AAIrD,MAAM,MAAM,iBAAiB,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,OAAO,CAAA;CAAE,CAAC;AAEhE,MAAM,MAAM,SAAS,GAAG;IACtB,kEAAkE;IAClE,SAAS,EAAE,MAAM,GAAG,CAAC;IACrB,iCAAiC;IACjC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,oBAAoB;IACpB,QAAQ,EAAE,SAAS,EAAE,CAAC;IACtB,kCAAkC;IAClC,OAAO,EAAE,IAAI,GAAG,iBAAiB,EAAE,CAAC;IACpC,sCAAsC;IACtC,KAAK,EAAE,MAAM,CAAC;IACd,qDAAqD;IACrD,UAAU,EAAE,MAAM,CAAC;IACnB,sBAAsB;IACtB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,wFAAwF;IACxF,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAQF,+DAA+D;AAC/D,wBAAgB,YAAY,IAAI,SAAS,GAAG,IAAI,CAE/C;AAED,wBAAgB,aAAa,IAAI,MAAM,CAMtC;AAED,iEAAiE;AACjE,wBAAgB,KAAK,CAAC,EACpB,QAAQ,EACR,IAAI,GACL,EAAE;IACD,QAAQ,EAAE,SAAS,CAAC;IACpB,IAAI,EAAE,SAAS,CAAC;CACjB,eAMA;AAED,wBAAgB,qBAAqB,CAAC,gBAAgB,CAAC,EAAE,MAAM,OAClD,SAAS,KAAK,SAAS,KAAG,MAAM,CAW5C;AAED,wBAAgB,UAAU,CAAC,CAAC,EAAE,SAAS,EAAE,CAAC,EAAE,SAAS,GAAG,MAAM,CAmC7D"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Navigator, Slot } from "./views/Navigator";
|
|
2
|
+
export { useRouter } from "./link/useRouter";
|
|
3
|
+
export { usePathname, useLocalSearchParams, useSearchParams, useSegments, } from "./LocationProvider";
|
|
4
|
+
export { Link, Redirect } from "./link/Link";
|
|
5
|
+
export { withLayoutContext } from "./layouts/withLayoutContext";
|
|
6
|
+
export { Navigator, Slot };
|
|
7
|
+
export { ExpoRoot } from "./ExpoRoot";
|
|
8
|
+
export { Unmatched } from "./views/Unmatched";
|
|
9
|
+
export { ErrorBoundaryProps } from "./views/Try";
|
|
10
|
+
export { ErrorBoundary } from "./views/ErrorBoundary";
|
|
11
|
+
export { SplashScreen } from "./views/Splash";
|
|
12
|
+
export { useNavigation } from "./useNavigation";
|
|
13
|
+
export { useRootNavigation, useRootNavigationState } from "./useRootNavigation";
|
|
14
|
+
export { useFocusEffect } from "./useFocusEffect";
|
|
15
|
+
//# sourceMappingURL=exports.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"exports.d.ts","sourceRoot":"","sources":["../src/exports.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAEpD,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EACL,WAAW,EACX,oBAAoB,EACpB,eAAe,EACf,WAAW,GACZ,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAE7C,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAChE,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;AAG3B,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AACjD,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAGtD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAG9C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,iBAAiB,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAChF,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NavigationContainer.d.ts","sourceRoot":"","sources":["../../src/fork/NavigationContainer.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAE/D,eAAe,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { NavigationContainerProps, NavigationContainerRef } from "@react-navigation/core";
|
|
2
|
+
import { DocumentTitleOptions, LinkingOptions, Theme } from "@react-navigation/native";
|
|
3
|
+
import * as React from "react";
|
|
4
|
+
declare global {
|
|
5
|
+
var REACT_NAVIGATION_DEVTOOLS: WeakMap<NavigationContainerRef<any>, {
|
|
6
|
+
readonly linking: LinkingOptions<any>;
|
|
7
|
+
}>;
|
|
8
|
+
}
|
|
9
|
+
type Props<ParamList extends object> = NavigationContainerProps & {
|
|
10
|
+
theme?: Theme;
|
|
11
|
+
linking?: LinkingOptions<ParamList>;
|
|
12
|
+
fallback?: React.ReactNode;
|
|
13
|
+
documentTitle?: DocumentTitleOptions;
|
|
14
|
+
onReady?: () => void;
|
|
15
|
+
};
|
|
16
|
+
declare const NavigationContainer: <RootParamList extends object = ReactNavigation.RootParamList>(props: NavigationContainerProps & {
|
|
17
|
+
theme?: Theme | undefined;
|
|
18
|
+
linking?: LinkingOptions<RootParamList> | undefined;
|
|
19
|
+
fallback?: React.ReactNode;
|
|
20
|
+
documentTitle?: DocumentTitleOptions | undefined;
|
|
21
|
+
onReady?: (() => void) | undefined;
|
|
22
|
+
} & {
|
|
23
|
+
ref?: React.Ref<NavigationContainerRef<RootParamList>> | undefined;
|
|
24
|
+
}) => React.ReactElement;
|
|
25
|
+
export default NavigationContainer;
|
|
26
|
+
//# sourceMappingURL=NavigationContainer.native.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NavigationContainer.native.d.ts","sourceRoot":"","sources":["../../src/fork/NavigationContainer.native.tsx"],"names":[],"mappings":"AAEA,OAAO,EAKL,wBAAwB,EACxB,sBAAsB,EAGvB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAEL,oBAAoB,EAEpB,cAAc,EACd,KAAK,EAEN,MAAM,0BAA0B,CAAC;AAIlC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,OAAO,CAAC,MAAM,CAAC;IAEb,IAAI,yBAAyB,EAAE,OAAO,CACpC,sBAAsB,CAAC,GAAG,CAAC,EAC3B;QAAE,QAAQ,CAAC,OAAO,EAAE,cAAc,CAAC,GAAG,CAAC,CAAA;KAAE,CAC1C,CAAC;CACH;AAID,KAAK,KAAK,CAAC,SAAS,SAAS,MAAM,IAAI,wBAAwB,GAAG;IAChE,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,OAAO,CAAC,EAAE,cAAc,CAAC,SAAS,CAAC,CAAC;IACpC,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,aAAa,CAAC,EAAE,oBAAoB,CAAC;IACrC,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB,CAAC;AA2GF,QAAA,MAAM,mBAAmB;;;eA9GZ,MAAM,SAAS;;qBAEV,IAAI;;;MAkHjB,MAAM,YAAY,CAAC;AAExB,eAAe,mBAAmB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createRoot.d.ts","sourceRoot":"","sources":["../../../src/fork/expo/createRoot.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createRoot.native.d.ts","sourceRoot":"","sources":["../../../src/fork/expo/createRoot.native.tsx"],"names":[],"mappings":"AAEA,wBAAgB,UAAU,SAEzB;AACD,wBAAgB,WAAW,SAE1B"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import "expo/build/Expo.fx";
|
|
2
|
+
import "@expo/metro-runtime";
|
|
3
|
+
import * as React from "react";
|
|
4
|
+
type InitialProps = {
|
|
5
|
+
exp: {
|
|
6
|
+
notification?: any;
|
|
7
|
+
manifestString?: string;
|
|
8
|
+
[key: string]: any;
|
|
9
|
+
};
|
|
10
|
+
shell?: boolean;
|
|
11
|
+
shellManifestUrl?: string;
|
|
12
|
+
[key: string]: any;
|
|
13
|
+
};
|
|
14
|
+
export default function registerRootComponent<P extends InitialProps>(component: React.ComponentType<P>): void;
|
|
15
|
+
export {};
|
|
16
|
+
//# sourceMappingURL=registerRootComponent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"registerRootComponent.d.ts","sourceRoot":"","sources":["../../../src/fork/expo/registerRootComponent.tsx"],"names":[],"mappings":"AAGA,OAAO,oBAAoB,CAAC;AAG5B,OAAO,qBAAqB,CAAC;AAI7B,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,KAAK,YAAY,GAAG;IAClB,GAAG,EAAE;QACH,YAAY,CAAC,EAAE,GAAG,CAAC;QACnB,cAAc,CAAC,EAAE,MAAM,CAAC;QACxB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;KACpB,CAAC;IACF,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,qBAAqB,CAAC,CAAC,SAAS,YAAY,EAClE,SAAS,EAAE,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,GAChC,IAAI,CA6CN"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"extractPathFromURL.d.ts","sourceRoot":"","sources":["../../src/fork/extractPathFromURL.ts"],"names":[],"mappings":"AAIA,wBAAgB,sBAAsB,CAAC,GAAG,EAAE,MAAM,UAiBjD"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { PathConfigMap } from "@react-navigation/core";
|
|
2
|
+
import type { NavigationState, PartialState } from "@react-navigation/routers";
|
|
3
|
+
type Options<ParamList extends object> = {
|
|
4
|
+
initialRouteName?: string;
|
|
5
|
+
screens: PathConfigMap<ParamList>;
|
|
6
|
+
};
|
|
7
|
+
export type State = NavigationState | Omit<PartialState<NavigationState>, "stale">;
|
|
8
|
+
/**
|
|
9
|
+
* Utility to serialize a navigation state object to a path string.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```js
|
|
13
|
+
* getPathFromState(
|
|
14
|
+
* {
|
|
15
|
+
* routes: [
|
|
16
|
+
* {
|
|
17
|
+
* name: 'Chat',
|
|
18
|
+
* params: { author: 'Jane', id: 42 },
|
|
19
|
+
* },
|
|
20
|
+
* ],
|
|
21
|
+
* },
|
|
22
|
+
* {
|
|
23
|
+
* screens: {
|
|
24
|
+
* Chat: {
|
|
25
|
+
* path: 'chat/:author/:id',
|
|
26
|
+
* stringify: { author: author => author.toLowerCase() }
|
|
27
|
+
* }
|
|
28
|
+
* }
|
|
29
|
+
* }
|
|
30
|
+
* )
|
|
31
|
+
* ```
|
|
32
|
+
*
|
|
33
|
+
* @param state Navigation state to serialize.
|
|
34
|
+
* @param options Extra options to fine-tune how to serialize the path.
|
|
35
|
+
* @returns Path representing the state, e.g. /foo/bar?count=42.
|
|
36
|
+
*/
|
|
37
|
+
export default function getPathFromState<ParamList extends object>(state: State, _options?: Options<ParamList> & {
|
|
38
|
+
preserveGroups?: boolean;
|
|
39
|
+
preserveDynamicRoutes?: boolean;
|
|
40
|
+
}): string;
|
|
41
|
+
export declare function getPathDataFromState<ParamList extends object>(state: State, _options?: Options<ParamList> & {
|
|
42
|
+
preserveGroups?: boolean;
|
|
43
|
+
preserveDynamicRoutes?: boolean;
|
|
44
|
+
}): {
|
|
45
|
+
path: string;
|
|
46
|
+
params: Record<string, any>;
|
|
47
|
+
};
|
|
48
|
+
export declare function deepEqual(a: any, b: any): boolean;
|
|
49
|
+
export {};
|
|
50
|
+
//# sourceMappingURL=getPathFromState.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getPathFromState.d.ts","sourceRoot":"","sources":["../../src/fork/getPathFromState.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,aAAa,EAEd,MAAM,wBAAwB,CAAC;AAChC,OAAO,KAAK,EACV,eAAe,EACf,YAAY,EAEb,MAAM,2BAA2B,CAAC;AASnC,KAAK,OAAO,CAAC,SAAS,SAAS,MAAM,IAAI;IACvC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,OAAO,EAAE,aAAa,CAAC,SAAS,CAAC,CAAC;CACnC,CAAC;AAEF,MAAM,MAAM,KAAK,GACb,eAAe,GACf,IAAI,CAAC,YAAY,CAAC,eAAe,CAAC,EAAE,OAAO,CAAC,CAAC;AAkEjD;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,MAAM,CAAC,OAAO,UAAU,gBAAgB,CAAC,SAAS,SAAS,MAAM,EAC/D,KAAK,EAAE,KAAK,EACZ,QAAQ,CAAC,EAAE,OAAO,CAAC,SAAS,CAAC,GAAG;IAC9B,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,qBAAqB,CAAC,EAAE,OAAO,CAAC;CACjC,GACA,MAAM,CAER;AAED,wBAAgB,oBAAoB,CAAC,SAAS,SAAS,MAAM,EAC3D,KAAK,EAAE,KAAK,EACZ,QAAQ,GAAE,OAAO,CAAC,SAAS,CAAC,GAAG;IAC7B,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,qBAAqB,CAAC,EAAE,OAAO,CAAC;CACF;;;EAyBjC;AAsBD,wBAAgB,SAAS,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,WAqCvC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { PathConfigMap } from "@react-navigation/core";
|
|
2
|
+
import type { NavigationState, PartialState } from "@react-navigation/routers";
|
|
3
|
+
type Options<ParamList extends object> = {
|
|
4
|
+
initialRouteName?: string;
|
|
5
|
+
screens: PathConfigMap<ParamList>;
|
|
6
|
+
};
|
|
7
|
+
export type ResultState = PartialState<NavigationState> & {
|
|
8
|
+
state?: ResultState;
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* Utility to parse a path string to initial state object accepted by the container.
|
|
12
|
+
* This is useful for deep linking when we need to handle the incoming URL.
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```js
|
|
16
|
+
* getStateFromPath(
|
|
17
|
+
* '/chat/jane/42',
|
|
18
|
+
* {
|
|
19
|
+
* screens: {
|
|
20
|
+
* Chat: {
|
|
21
|
+
* path: 'chat/:author/:id',
|
|
22
|
+
* parse: { id: Number }
|
|
23
|
+
* }
|
|
24
|
+
* }
|
|
25
|
+
* }
|
|
26
|
+
* )
|
|
27
|
+
* ```
|
|
28
|
+
* @param path Path string to parse and convert, e.g. /foo/bar?count=42.
|
|
29
|
+
* @param options Extra options to fine-tune how to parse the path.
|
|
30
|
+
*/
|
|
31
|
+
export default function getStateFromPath<ParamList extends object>(path: string, options?: Options<ParamList>): ResultState | undefined;
|
|
32
|
+
export {};
|
|
33
|
+
//# sourceMappingURL=getStateFromPath.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getStateFromPath.d.ts","sourceRoot":"","sources":["../../src/fork/getStateFromPath.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EAGd,MAAM,wBAAwB,CAAC;AAChC,OAAO,KAAK,EAEV,eAAe,EACf,YAAY,EACb,MAAM,2BAA2B,CAAC;AAMnC,KAAK,OAAO,CAAC,SAAS,SAAS,MAAM,IAAI;IACvC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,OAAO,EAAE,aAAa,CAAC,SAAS,CAAC,CAAC;CACnC,CAAC;AAqBF,MAAM,MAAM,WAAW,GAAG,YAAY,CAAC,eAAe,CAAC,GAAG;IACxD,KAAK,CAAC,EAAE,WAAW,CAAC;CACrB,CAAC;AAkBF;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,MAAM,CAAC,OAAO,UAAU,gBAAgB,CAAC,SAAS,SAAS,MAAM,EAC/D,IAAI,EAAE,MAAM,EACZ,OAAO,CAAC,EAAE,OAAO,CAAC,SAAS,CAAC,GAC3B,WAAW,GAAG,SAAS,CA8CzB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useLinking.d.ts","sourceRoot":"","sources":["../../src/fork/useLinking.ts"],"names":[],"mappings":";AAGA,wBAA0E"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { NavigationContainerRef, ParamListBase } from "@react-navigation/core";
|
|
2
|
+
import type { LinkingOptions } from "@react-navigation/native";
|
|
3
|
+
import * as React from "react";
|
|
4
|
+
type Options = LinkingOptions<ParamListBase>;
|
|
5
|
+
export default function useLinking(ref: React.RefObject<NavigationContainerRef<ParamListBase>>, { filter, config, getInitialURL, subscribe, getStateFromPath, getActionFromState, }: Options): {
|
|
6
|
+
getInitialState: () => PromiseLike<(Partial<Omit<Readonly<{
|
|
7
|
+
key: string;
|
|
8
|
+
index: number;
|
|
9
|
+
routeNames: string[];
|
|
10
|
+
history?: unknown[] | undefined;
|
|
11
|
+
routes: (Readonly<{
|
|
12
|
+
key: string;
|
|
13
|
+
name: string;
|
|
14
|
+
path?: string | undefined;
|
|
15
|
+
}> & Readonly<{
|
|
16
|
+
params?: Readonly<object | undefined>;
|
|
17
|
+
}> & {
|
|
18
|
+
state?: Readonly<any> | import("@react-navigation/core").PartialState<Readonly<any>> | undefined;
|
|
19
|
+
})[];
|
|
20
|
+
type: string;
|
|
21
|
+
stale: false;
|
|
22
|
+
}>, "stale" | "routes">> & Readonly<{
|
|
23
|
+
stale?: true | undefined;
|
|
24
|
+
routes: import("@react-navigation/core").PartialRoute<import("@react-navigation/core").Route<string, object | undefined>>[];
|
|
25
|
+
}> & {
|
|
26
|
+
state?: (Partial<Omit<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/core").PartialState<Readonly<any>> | undefined;
|
|
39
|
+
})[];
|
|
40
|
+
type: string;
|
|
41
|
+
stale: false;
|
|
42
|
+
}>, "stale" | "routes">> & Readonly<{
|
|
43
|
+
stale?: true | undefined;
|
|
44
|
+
routes: import("@react-navigation/core").PartialRoute<import("@react-navigation/core").Route<string, object | undefined>>[];
|
|
45
|
+
}> & any) | undefined;
|
|
46
|
+
}) | undefined>;
|
|
47
|
+
};
|
|
48
|
+
export {};
|
|
49
|
+
//# sourceMappingURL=useLinking.native.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useLinking.native.d.ts","sourceRoot":"","sources":["../../src/fork/useLinking.native.ts"],"names":[],"mappings":"AAIA,OAAO,EAGL,sBAAsB,EACtB,aAAa,EACd,MAAM,wBAAwB,CAAC;AAChC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAO/B,KAAK,OAAO,GAAG,cAAc,CAAC,aAAa,CAAC,CAAC;AAI7C,MAAM,CAAC,OAAO,UAAU,UAAU,CAChC,GAAG,EAAE,KAAK,CAAC,SAAS,CAAC,sBAAsB,CAAC,aAAa,CAAC,CAAC,EAC3D,EAGE,MAAM,EACN,MAAM,EACN,aAQI,EACJ,SAUC,EACD,gBAA0C,EAC1C,kBAA8C,GAC/C,EAAE,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA2KX"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/getDevServer/index.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,YAAY;;IAcrB,0DAA0D;;;CAmB7D,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.native.d.ts","sourceRoot":"","sources":["../../src/getDevServer/index.native.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY,KAA+D,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { LinkingOptions } from "@react-navigation/native";
|
|
2
|
+
import { RouteNode } from "./Route";
|
|
3
|
+
type Screen = string | {
|
|
4
|
+
path: string;
|
|
5
|
+
screens: Record<string, Screen>;
|
|
6
|
+
initialRouteName?: string;
|
|
7
|
+
};
|
|
8
|
+
export declare function getReactNavigationScreensConfig(nodes: RouteNode[]): Record<string, Screen>;
|
|
9
|
+
export declare function getNavigationConfig(routes: RouteNode): {
|
|
10
|
+
initialRouteName?: string;
|
|
11
|
+
screens: Record<string, Screen>;
|
|
12
|
+
};
|
|
13
|
+
export declare function getLinkingConfig(routes: RouteNode): LinkingOptions<object>;
|
|
14
|
+
export {};
|
|
15
|
+
//# sourceMappingURL=getLinkingConfig.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getLinkingConfig.d.ts","sourceRoot":"","sources":["../src/getLinkingConfig.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAsB,MAAM,0BAA0B,CAAC;AAE9E,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AASpC,KAAK,MAAM,GACP,MAAM,GACN;IACE,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAChC,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B,CAAC;AAwDN,wBAAgB,+BAA+B,CAC7C,KAAK,EAAE,SAAS,EAAE,GACjB,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAIxB;AAED,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,SAAS,GAAG;IACtD,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACjC,CAKA;AAED,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,SAAS,GAAG,cAAc,CAAC,MAAM,CAAC,CAmB1E"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { DynamicConvention, RouteNode } from "./Route";
|
|
2
|
+
import { RequireContext } from "./types";
|
|
3
|
+
export type FileNode = Pick<RouteNode, "contextKey" | "loadRoute"> & {
|
|
4
|
+
/** Like `(tab)/index` */
|
|
5
|
+
normalizedName: string;
|
|
6
|
+
};
|
|
7
|
+
type TreeNode = {
|
|
8
|
+
name: string;
|
|
9
|
+
children: TreeNode[];
|
|
10
|
+
parents: string[];
|
|
11
|
+
/** null when there is no file in a folder. */
|
|
12
|
+
node: FileNode | null;
|
|
13
|
+
};
|
|
14
|
+
/** Convert a flat map of file nodes into a nested tree of files. */
|
|
15
|
+
export declare function getRecursiveTree(files: FileNode[]): TreeNode;
|
|
16
|
+
export declare function generateDynamicFromSegment(name: string): DynamicConvention | null;
|
|
17
|
+
export declare function generateDynamic(name: string): RouteNode["dynamic"];
|
|
18
|
+
/**
|
|
19
|
+
* Asserts if the require.context has files that share the same name but have different extensions. Exposed for testing.
|
|
20
|
+
* @private
|
|
21
|
+
*/
|
|
22
|
+
export declare function assertDuplicateRoutes(filenames: string[]): void;
|
|
23
|
+
/** Given a Metro context module, return an array of nested routes. */
|
|
24
|
+
export declare function getRoutes(contextModule: RequireContext): RouteNode | null;
|
|
25
|
+
/** Get routes without unmatched or sitemap. */
|
|
26
|
+
export declare function getExactRoutes(contextModule: RequireContext): RouteNode | null;
|
|
27
|
+
/**
|
|
28
|
+
* Exposed for testing.
|
|
29
|
+
* @returns a top-level deep dynamic route if it exists, otherwise null.
|
|
30
|
+
*/
|
|
31
|
+
export declare function getUserDefinedDeepDynamicRoute(routes: RouteNode): RouteNode | null;
|
|
32
|
+
export {};
|
|
33
|
+
//# sourceMappingURL=getRoutes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getRoutes.d.ts","sourceRoot":"","sources":["../src/getRoutes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AASvD,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAEzC,MAAM,MAAM,QAAQ,GAAG,IAAI,CAAC,SAAS,EAAE,YAAY,GAAG,WAAW,CAAC,GAAG;IACnE,yBAAyB;IACzB,cAAc,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF,KAAK,QAAQ,GAAG;IACd,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,QAAQ,EAAE,CAAC;IACrB,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,8CAA8C;IAC9C,IAAI,EAAE,QAAQ,GAAG,IAAI,CAAC;CACvB,CAAC;AAEF,oEAAoE;AACpE,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,QAAQ,EAAE,GAAG,QAAQ,CA+C5D;AAsBD,wBAAgB,0BAA0B,CACxC,IAAI,EAAE,MAAM,GACX,iBAAiB,GAAG,IAAI,CAK1B;AAED,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,CAAC,SAAS,CAAC,CAMlE;AA+MD;;;GAGG;AACH,wBAAgB,qBAAqB,CAAC,SAAS,EAAE,MAAM,EAAE,QAiBxD;AAED,sEAAsE;AACtE,wBAAgB,SAAS,CAAC,aAAa,EAAE,cAAc,GAAG,SAAS,GAAG,IAAI,CAYzE;AAED,+CAA+C;AAC/C,wBAAgB,cAAc,CAC5B,aAAa,EAAE,cAAc,GAC5B,SAAS,GAAG,IAAI,CAMlB;AA4CD;;;GAGG;AACH,wBAAgB,8BAA8B,CAC5C,MAAM,EAAE,SAAS,GAChB,SAAS,GAAG,IAAI,CAgBlB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Head.d.ts","sourceRoot":"","sources":["../../src/head/Head.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAU,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAE5D,QAAA,MAAM,IAAI;cAGE,qBAAqB;CAChC,CAAC;AAIF,eAAe,IAAI,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
declare function Head({ children, }: {
|
|
3
|
+
children?: React.ReactNode;
|
|
4
|
+
}): React.ReactElement;
|
|
5
|
+
declare namespace Head {
|
|
6
|
+
var Provider: React.ExoticComponent<{
|
|
7
|
+
children?: React.ReactNode;
|
|
8
|
+
}>;
|
|
9
|
+
}
|
|
10
|
+
export default Head;
|
|
11
|
+
//# sourceMappingURL=Head.native.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Head.native.d.ts","sourceRoot":"","sources":["../../src/head/Head.native.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AA6B1B,iBAAS,IAAI,CAAC,EACZ,QAAQ,GACT,EAAE;IACD,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B,GAAG,KAAK,CAAC,YAAY,CAwCrB;kBA5CQ,IAAI;;;;;AAgDb,eAAe,IAAI,CAAC"}
|
package/build/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AACxC,OAAO,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AACtC,cAAc,WAAW,CAAC"}
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { DrawerNavigationOptions } from "@react-navigation/drawer";
|
|
3
|
+
export declare const Drawer: import("react").ForwardRefExoticComponent<Omit<Omit<import("@react-navigation/routers").DefaultRouterOptions<string> & {
|
|
4
|
+
id?: string | undefined;
|
|
5
|
+
children: import("react").ReactNode;
|
|
6
|
+
screenListeners?: Partial<{
|
|
7
|
+
drawerItemPress: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/drawer").DrawerNavigationEventMap, "drawerItemPress">;
|
|
8
|
+
focus: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/drawer").DrawerNavigationEventMap, "focus">;
|
|
9
|
+
blur: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/drawer").DrawerNavigationEventMap, "blur">;
|
|
10
|
+
state: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/drawer").DrawerNavigationEventMap, "state">;
|
|
11
|
+
beforeRemove: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/drawer").DrawerNavigationEventMap, "beforeRemove">;
|
|
12
|
+
}> | ((props: {
|
|
13
|
+
route: import("@react-navigation/core").RouteProp<import("@react-navigation/routers").ParamListBase, string>;
|
|
14
|
+
navigation: any;
|
|
15
|
+
}) => Partial<{
|
|
16
|
+
drawerItemPress: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/drawer").DrawerNavigationEventMap, "drawerItemPress">;
|
|
17
|
+
focus: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/drawer").DrawerNavigationEventMap, "focus">;
|
|
18
|
+
blur: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/drawer").DrawerNavigationEventMap, "blur">;
|
|
19
|
+
state: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/drawer").DrawerNavigationEventMap, "state">;
|
|
20
|
+
beforeRemove: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/drawer").DrawerNavigationEventMap, "beforeRemove">;
|
|
21
|
+
}>) | undefined;
|
|
22
|
+
screenOptions?: DrawerNavigationOptions | ((props: {
|
|
23
|
+
route: import("@react-navigation/core").RouteProp<import("@react-navigation/routers").ParamListBase, string>;
|
|
24
|
+
navigation: any;
|
|
25
|
+
}) => DrawerNavigationOptions) | undefined;
|
|
26
|
+
} & import("@react-navigation/routers").DefaultRouterOptions & {
|
|
27
|
+
backBehavior?: import("@react-navigation/routers/lib/typescript/src/TabRouter").BackBehavior | undefined;
|
|
28
|
+
} & {
|
|
29
|
+
defaultStatus?: import("@react-navigation/routers").DrawerStatus | undefined;
|
|
30
|
+
} & import("@react-navigation/drawer/lib/typescript/src/types").DrawerNavigationConfig, "children" | "initialRouteName" | "id" | "screenListeners" | "screenOptions"> & import("@react-navigation/routers").DefaultRouterOptions<string> & {
|
|
31
|
+
id?: string | undefined;
|
|
32
|
+
children: import("react").ReactNode;
|
|
33
|
+
screenListeners?: Partial<{
|
|
34
|
+
drawerItemPress: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/drawer").DrawerNavigationEventMap, "drawerItemPress">;
|
|
35
|
+
focus: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/drawer").DrawerNavigationEventMap, "focus">;
|
|
36
|
+
blur: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/drawer").DrawerNavigationEventMap, "blur">;
|
|
37
|
+
state: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/drawer").DrawerNavigationEventMap, "state">;
|
|
38
|
+
beforeRemove: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/drawer").DrawerNavigationEventMap, "beforeRemove">;
|
|
39
|
+
}> | ((props: {
|
|
40
|
+
route: import("@react-navigation/core").RouteProp<import("@react-navigation/routers").ParamListBase, string>;
|
|
41
|
+
navigation: any;
|
|
42
|
+
}) => Partial<{
|
|
43
|
+
drawerItemPress: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/drawer").DrawerNavigationEventMap, "drawerItemPress">;
|
|
44
|
+
focus: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/drawer").DrawerNavigationEventMap, "focus">;
|
|
45
|
+
blur: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/drawer").DrawerNavigationEventMap, "blur">;
|
|
46
|
+
state: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/drawer").DrawerNavigationEventMap, "state">;
|
|
47
|
+
beforeRemove: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/drawer").DrawerNavigationEventMap, "beforeRemove">;
|
|
48
|
+
}>) | undefined;
|
|
49
|
+
screenOptions?: DrawerNavigationOptions | ((props: {
|
|
50
|
+
route: import("@react-navigation/core").RouteProp<import("@react-navigation/routers").ParamListBase, string>;
|
|
51
|
+
navigation: any;
|
|
52
|
+
}) => DrawerNavigationOptions) | undefined;
|
|
53
|
+
}, "children"> & Partial<Pick<Omit<import("@react-navigation/routers").DefaultRouterOptions<string> & {
|
|
54
|
+
id?: string | undefined;
|
|
55
|
+
children: import("react").ReactNode;
|
|
56
|
+
screenListeners?: Partial<{
|
|
57
|
+
drawerItemPress: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/drawer").DrawerNavigationEventMap, "drawerItemPress">;
|
|
58
|
+
focus: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/drawer").DrawerNavigationEventMap, "focus">;
|
|
59
|
+
blur: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/drawer").DrawerNavigationEventMap, "blur">;
|
|
60
|
+
state: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/drawer").DrawerNavigationEventMap, "state">;
|
|
61
|
+
beforeRemove: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/drawer").DrawerNavigationEventMap, "beforeRemove">;
|
|
62
|
+
}> | ((props: {
|
|
63
|
+
route: import("@react-navigation/core").RouteProp<import("@react-navigation/routers").ParamListBase, string>;
|
|
64
|
+
navigation: any;
|
|
65
|
+
}) => Partial<{
|
|
66
|
+
drawerItemPress: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/drawer").DrawerNavigationEventMap, "drawerItemPress">;
|
|
67
|
+
focus: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/drawer").DrawerNavigationEventMap, "focus">;
|
|
68
|
+
blur: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/drawer").DrawerNavigationEventMap, "blur">;
|
|
69
|
+
state: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/drawer").DrawerNavigationEventMap, "state">;
|
|
70
|
+
beforeRemove: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/drawer").DrawerNavigationEventMap, "beforeRemove">;
|
|
71
|
+
}>) | undefined;
|
|
72
|
+
screenOptions?: DrawerNavigationOptions | ((props: {
|
|
73
|
+
route: import("@react-navigation/core").RouteProp<import("@react-navigation/routers").ParamListBase, string>;
|
|
74
|
+
navigation: any;
|
|
75
|
+
}) => DrawerNavigationOptions) | undefined;
|
|
76
|
+
} & import("@react-navigation/routers").DefaultRouterOptions & {
|
|
77
|
+
backBehavior?: import("@react-navigation/routers/lib/typescript/src/TabRouter").BackBehavior | undefined;
|
|
78
|
+
} & {
|
|
79
|
+
defaultStatus?: import("@react-navigation/routers").DrawerStatus | undefined;
|
|
80
|
+
} & import("@react-navigation/drawer/lib/typescript/src/types").DrawerNavigationConfig, "children" | "initialRouteName" | "id" | "screenListeners" | "screenOptions"> & import("@react-navigation/routers").DefaultRouterOptions<string> & {
|
|
81
|
+
id?: string | undefined;
|
|
82
|
+
children: import("react").ReactNode;
|
|
83
|
+
screenListeners?: Partial<{
|
|
84
|
+
drawerItemPress: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/drawer").DrawerNavigationEventMap, "drawerItemPress">;
|
|
85
|
+
focus: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/drawer").DrawerNavigationEventMap, "focus">;
|
|
86
|
+
blur: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/drawer").DrawerNavigationEventMap, "blur">;
|
|
87
|
+
state: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/drawer").DrawerNavigationEventMap, "state">;
|
|
88
|
+
beforeRemove: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/drawer").DrawerNavigationEventMap, "beforeRemove">;
|
|
89
|
+
}> | ((props: {
|
|
90
|
+
route: import("@react-navigation/core").RouteProp<import("@react-navigation/routers").ParamListBase, string>;
|
|
91
|
+
navigation: any;
|
|
92
|
+
}) => Partial<{
|
|
93
|
+
drawerItemPress: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/drawer").DrawerNavigationEventMap, "drawerItemPress">;
|
|
94
|
+
focus: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/drawer").DrawerNavigationEventMap, "focus">;
|
|
95
|
+
blur: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/drawer").DrawerNavigationEventMap, "blur">;
|
|
96
|
+
state: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/drawer").DrawerNavigationEventMap, "state">;
|
|
97
|
+
beforeRemove: import("@react-navigation/core").EventListenerCallback<import("@react-navigation/drawer").DrawerNavigationEventMap, "beforeRemove">;
|
|
98
|
+
}>) | undefined;
|
|
99
|
+
screenOptions?: DrawerNavigationOptions | ((props: {
|
|
100
|
+
route: import("@react-navigation/core").RouteProp<import("@react-navigation/routers").ParamListBase, string>;
|
|
101
|
+
navigation: any;
|
|
102
|
+
}) => DrawerNavigationOptions) | undefined;
|
|
103
|
+
}, "children">> & import("react").RefAttributes<unknown>> & {
|
|
104
|
+
Screen: (props: import("../useScreens").ScreenProps<DrawerNavigationOptions>) => null;
|
|
105
|
+
};
|
|
106
|
+
export default Drawer;
|
|
107
|
+
//# sourceMappingURL=Drawer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Drawer.d.ts","sourceRoot":"","sources":["../../src/layouts/Drawer.tsx"],"names":[],"mappings":";AAAA,OAAO,EAEL,uBAAuB,EACxB,MAAM,0BAA0B,CAAC;AAMlC,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGD,CAAC;AAEnB,eAAe,MAAM,CAAC"}
|