@react-navigation/native 7.0.0-rc.14 → 7.0.0-rc.15
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/lib/commonjs/ServerContainer.js +14 -8
- package/lib/commonjs/ServerContainer.js.map +1 -1
- package/lib/commonjs/useBackButton.js +1 -0
- package/lib/commonjs/useBackButton.js.map +1 -1
- package/lib/commonjs/useDocumentTitle.native.js +2 -1
- package/lib/commonjs/useDocumentTitle.native.js.map +1 -1
- package/lib/module/Link.js +2 -0
- package/lib/module/Link.js.map +1 -1
- package/lib/module/LinkingContext.js +2 -0
- package/lib/module/LinkingContext.js.map +1 -1
- package/lib/module/LocaleDirContext.js +2 -0
- package/lib/module/LocaleDirContext.js.map +1 -1
- package/lib/module/NavigationContainer.js +2 -0
- package/lib/module/NavigationContainer.js.map +1 -1
- package/lib/module/ServerContainer.js +16 -8
- package/lib/module/ServerContainer.js.map +1 -1
- package/lib/module/ServerContext.js +2 -0
- package/lib/module/ServerContext.js.map +1 -1
- package/lib/module/UnhandledLinkingContext.js +2 -0
- package/lib/module/UnhandledLinkingContext.js.map +1 -1
- package/lib/module/__stubs__/createStackNavigator.js +2 -0
- package/lib/module/__stubs__/createStackNavigator.js.map +1 -1
- package/lib/module/__stubs__/window.js +2 -0
- package/lib/module/__stubs__/window.js.map +1 -1
- package/lib/module/createMemoryHistory.js +2 -0
- package/lib/module/createMemoryHistory.js.map +1 -1
- package/lib/module/createStaticNavigation.js +2 -0
- package/lib/module/createStaticNavigation.js.map +1 -1
- package/lib/module/extractPathFromURL.js +2 -0
- package/lib/module/extractPathFromURL.js.map +1 -1
- package/lib/module/index.js +2 -0
- package/lib/module/index.js.map +1 -1
- package/lib/module/theming/DarkTheme.js +2 -0
- package/lib/module/theming/DarkTheme.js.map +1 -1
- package/lib/module/theming/DefaultTheme.js +2 -0
- package/lib/module/theming/DefaultTheme.js.map +1 -1
- package/lib/module/theming/fonts.js +2 -0
- package/lib/module/theming/fonts.js.map +1 -1
- package/lib/module/types.js +2 -0
- package/lib/module/useBackButton.js +3 -0
- package/lib/module/useBackButton.js.map +1 -1
- package/lib/module/useBackButton.native.js +2 -0
- package/lib/module/useBackButton.native.js.map +1 -1
- package/lib/module/useDocumentTitle.js +2 -0
- package/lib/module/useDocumentTitle.js.map +1 -1
- package/lib/module/useDocumentTitle.native.js +4 -1
- package/lib/module/useDocumentTitle.native.js.map +1 -1
- package/lib/module/useLinkBuilder.js +2 -0
- package/lib/module/useLinkBuilder.js.map +1 -1
- package/lib/module/useLinkProps.js +2 -0
- package/lib/module/useLinkProps.js.map +1 -1
- package/lib/module/useLinkTo.js +2 -0
- package/lib/module/useLinkTo.js.map +1 -1
- package/lib/module/useLinking.js +2 -0
- package/lib/module/useLinking.js.map +1 -1
- package/lib/module/useLinking.native.js +2 -0
- package/lib/module/useLinking.native.js.map +1 -1
- package/lib/module/useLocale.js +2 -0
- package/lib/module/useLocale.js.map +1 -1
- package/lib/module/useScrollToTop.js +2 -0
- package/lib/module/useScrollToTop.js.map +1 -1
- package/lib/module/useThenable.js +2 -0
- package/lib/module/useThenable.js.map +1 -1
- package/lib/module/useUnhandledLinking.js +2 -0
- package/lib/module/useUnhandledLinking.js.map +1 -1
- package/lib/typescript/commonjs/package.json +1 -0
- package/lib/typescript/commonjs/src/Link.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/LinkingContext.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/LocaleDirContext.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/NavigationContainer.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/ServerContainer.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/ServerContext.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/UnhandledLinkingContext.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/__stubs__/createStackNavigator.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/__stubs__/window.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/createMemoryHistory.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/createStaticNavigation.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/extractPathFromURL.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/theming/DarkTheme.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/theming/DefaultTheme.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/theming/fonts.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/types.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/useBackButton.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/useBackButton.native.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/useDocumentTitle.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/useDocumentTitle.native.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/useLinkBuilder.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/useLinkProps.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/useLinkTo.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/useLinking.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/useLinking.native.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/useLocale.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/useScrollToTop.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/useThenable.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/useUnhandledLinking.d.ts.map +1 -0
- package/lib/typescript/commonjs/tsconfig.build.tsbuildinfo +1 -0
- package/lib/typescript/module/package.json +1 -0
- package/lib/typescript/module/src/Link.d.ts +22 -0
- package/lib/typescript/module/src/Link.d.ts.map +1 -0
- package/lib/typescript/module/src/LinkingContext.d.ts +7 -0
- package/lib/typescript/module/src/LinkingContext.d.ts.map +1 -0
- package/lib/typescript/module/src/LocaleDirContext.d.ts +4 -0
- package/lib/typescript/module/src/LocaleDirContext.d.ts.map +1 -0
- package/lib/typescript/module/src/NavigationContainer.d.ts +19 -0
- package/lib/typescript/module/src/NavigationContainer.d.ts.map +1 -0
- package/lib/typescript/module/src/ServerContainer.d.ts +14 -0
- package/lib/typescript/module/src/ServerContainer.d.ts.map +1 -0
- package/lib/typescript/module/src/ServerContext.d.ts +9 -0
- package/lib/typescript/module/src/ServerContext.d.ts.map +1 -0
- package/lib/typescript/module/src/UnhandledLinkingContext.d.ts +6 -0
- package/lib/typescript/module/src/UnhandledLinkingContext.d.ts.map +1 -0
- package/lib/typescript/module/src/__stubs__/createStackNavigator.d.ts +13 -0
- package/lib/typescript/module/src/__stubs__/createStackNavigator.d.ts.map +1 -0
- package/lib/typescript/module/src/__stubs__/window.d.ts +18 -0
- package/lib/typescript/module/src/__stubs__/window.d.ts.map +1 -0
- package/lib/typescript/module/src/createMemoryHistory.d.ts +25 -0
- package/lib/typescript/module/src/createMemoryHistory.d.ts.map +1 -0
- package/lib/typescript/module/src/createStaticNavigation.d.ts +34 -0
- package/lib/typescript/module/src/createStaticNavigation.d.ts.map +1 -0
- package/lib/typescript/module/src/extractPathFromURL.d.ts +2 -0
- package/lib/typescript/module/src/extractPathFromURL.d.ts.map +1 -0
- package/lib/typescript/module/src/index.d.ts +15 -0
- package/lib/typescript/module/src/index.d.ts.map +1 -0
- package/lib/typescript/module/src/theming/DarkTheme.d.ts +3 -0
- package/lib/typescript/module/src/theming/DarkTheme.d.ts.map +1 -0
- package/lib/typescript/module/src/theming/DefaultTheme.d.ts +3 -0
- package/lib/typescript/module/src/theming/DefaultTheme.d.ts.map +1 -0
- package/lib/typescript/module/src/theming/fonts.d.ts +53 -0
- package/lib/typescript/module/src/theming/fonts.d.ts.map +1 -0
- package/lib/typescript/module/src/types.d.ts +159 -0
- package/lib/typescript/module/src/types.d.ts.map +1 -0
- package/lib/typescript/module/src/useBackButton.d.ts +3 -0
- package/lib/typescript/module/src/useBackButton.d.ts.map +1 -0
- package/lib/typescript/module/src/useBackButton.native.d.ts +4 -0
- package/lib/typescript/module/src/useBackButton.native.d.ts.map +1 -0
- package/lib/typescript/module/src/useDocumentTitle.d.ts +8 -0
- package/lib/typescript/module/src/useDocumentTitle.d.ts.map +1 -0
- package/lib/typescript/module/src/useDocumentTitle.native.d.ts +2 -0
- package/lib/typescript/module/src/useDocumentTitle.native.d.ts.map +1 -0
- package/lib/typescript/module/src/useLinkBuilder.d.ts +25 -0
- package/lib/typescript/module/src/useLinkBuilder.d.ts.map +1 -0
- package/lib/typescript/module/src/useLinkProps.d.ts +32 -0
- package/lib/typescript/module/src/useLinkProps.d.ts.map +1 -0
- package/lib/typescript/module/src/useLinkTo.d.ts +6 -0
- package/lib/typescript/module/src/useLinkTo.d.ts.map +1 -0
- package/lib/typescript/module/src/useLinking.d.ts +14 -0
- package/lib/typescript/module/src/useLinking.d.ts.map +1 -0
- package/lib/typescript/module/src/useLinking.native.d.ts +33 -0
- package/lib/typescript/module/src/useLinking.native.d.ts.map +1 -0
- package/lib/typescript/module/src/useLocale.d.ts +7 -0
- package/lib/typescript/module/src/useLocale.d.ts.map +1 -0
- package/lib/typescript/module/src/useScrollToTop.d.ts +27 -0
- package/lib/typescript/module/src/useScrollToTop.d.ts.map +1 -0
- package/lib/typescript/module/src/useThenable.d.ts +2 -0
- package/lib/typescript/module/src/useThenable.d.ts.map +1 -0
- package/lib/typescript/module/src/useUnhandledLinking.d.ts +7 -0
- package/lib/typescript/module/src/useUnhandledLinking.d.ts.map +1 -0
- package/lib/typescript/module/tsconfig.build.tsbuildinfo +1 -0
- package/package.json +16 -9
- package/src/ServerContainer.tsx +2 -0
- package/src/useBackButton.tsx +1 -0
- package/src/useDocumentTitle.native.tsx +2 -1
- package/lib/typescript/src/Link.d.ts.map +0 -1
- package/lib/typescript/src/LinkingContext.d.ts.map +0 -1
- package/lib/typescript/src/LocaleDirContext.d.ts.map +0 -1
- package/lib/typescript/src/NavigationContainer.d.ts.map +0 -1
- package/lib/typescript/src/ServerContainer.d.ts.map +0 -1
- package/lib/typescript/src/ServerContext.d.ts.map +0 -1
- package/lib/typescript/src/UnhandledLinkingContext.d.ts.map +0 -1
- package/lib/typescript/src/__stubs__/createStackNavigator.d.ts.map +0 -1
- package/lib/typescript/src/__stubs__/window.d.ts.map +0 -1
- package/lib/typescript/src/createMemoryHistory.d.ts.map +0 -1
- package/lib/typescript/src/createStaticNavigation.d.ts.map +0 -1
- package/lib/typescript/src/extractPathFromURL.d.ts.map +0 -1
- package/lib/typescript/src/index.d.ts.map +0 -1
- package/lib/typescript/src/theming/DarkTheme.d.ts.map +0 -1
- package/lib/typescript/src/theming/DefaultTheme.d.ts.map +0 -1
- package/lib/typescript/src/theming/fonts.d.ts.map +0 -1
- package/lib/typescript/src/types.d.ts.map +0 -1
- package/lib/typescript/src/useBackButton.d.ts.map +0 -1
- package/lib/typescript/src/useBackButton.native.d.ts.map +0 -1
- package/lib/typescript/src/useDocumentTitle.d.ts.map +0 -1
- package/lib/typescript/src/useDocumentTitle.native.d.ts.map +0 -1
- package/lib/typescript/src/useLinkBuilder.d.ts.map +0 -1
- package/lib/typescript/src/useLinkProps.d.ts.map +0 -1
- package/lib/typescript/src/useLinkTo.d.ts.map +0 -1
- package/lib/typescript/src/useLinking.d.ts.map +0 -1
- package/lib/typescript/src/useLinking.native.d.ts.map +0 -1
- package/lib/typescript/src/useLocale.d.ts.map +0 -1
- package/lib/typescript/src/useScrollToTop.d.ts.map +0 -1
- package/lib/typescript/src/useThenable.d.ts.map +0 -1
- package/lib/typescript/src/useUnhandledLinking.d.ts.map +0 -1
- /package/lib/typescript/{src → commonjs/src}/Link.d.ts +0 -0
- /package/lib/typescript/{src → commonjs/src}/LinkingContext.d.ts +0 -0
- /package/lib/typescript/{src → commonjs/src}/LocaleDirContext.d.ts +0 -0
- /package/lib/typescript/{src → commonjs/src}/NavigationContainer.d.ts +0 -0
- /package/lib/typescript/{src → commonjs/src}/ServerContainer.d.ts +0 -0
- /package/lib/typescript/{src → commonjs/src}/ServerContext.d.ts +0 -0
- /package/lib/typescript/{src → commonjs/src}/UnhandledLinkingContext.d.ts +0 -0
- /package/lib/typescript/{src → commonjs/src}/__stubs__/createStackNavigator.d.ts +0 -0
- /package/lib/typescript/{src → commonjs/src}/__stubs__/window.d.ts +0 -0
- /package/lib/typescript/{src → commonjs/src}/createMemoryHistory.d.ts +0 -0
- /package/lib/typescript/{src → commonjs/src}/createStaticNavigation.d.ts +0 -0
- /package/lib/typescript/{src → commonjs/src}/extractPathFromURL.d.ts +0 -0
- /package/lib/typescript/{src → commonjs/src}/index.d.ts +0 -0
- /package/lib/typescript/{src → commonjs/src}/theming/DarkTheme.d.ts +0 -0
- /package/lib/typescript/{src → commonjs/src}/theming/DefaultTheme.d.ts +0 -0
- /package/lib/typescript/{src → commonjs/src}/theming/fonts.d.ts +0 -0
- /package/lib/typescript/{src → commonjs/src}/types.d.ts +0 -0
- /package/lib/typescript/{src → commonjs/src}/useBackButton.d.ts +0 -0
- /package/lib/typescript/{src → commonjs/src}/useBackButton.native.d.ts +0 -0
- /package/lib/typescript/{src → commonjs/src}/useDocumentTitle.d.ts +0 -0
- /package/lib/typescript/{src → commonjs/src}/useDocumentTitle.native.d.ts +0 -0
- /package/lib/typescript/{src → commonjs/src}/useLinkBuilder.d.ts +0 -0
- /package/lib/typescript/{src → commonjs/src}/useLinkProps.d.ts +0 -0
- /package/lib/typescript/{src → commonjs/src}/useLinkTo.d.ts +0 -0
- /package/lib/typescript/{src → commonjs/src}/useLinking.d.ts +0 -0
- /package/lib/typescript/{src → commonjs/src}/useLinking.native.d.ts +0 -0
- /package/lib/typescript/{src → commonjs/src}/useLocale.d.ts +0 -0
- /package/lib/typescript/{src → commonjs/src}/useScrollToTop.d.ts +0 -0
- /package/lib/typescript/{src → commonjs/src}/useThenable.d.ts +0 -0
- /package/lib/typescript/{src → commonjs/src}/useUnhandledLinking.d.ts +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"type":"module"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { type GestureResponderEvent, Text, type TextProps } from 'react-native';
|
|
3
|
+
import { type LinkProps } from './useLinkProps';
|
|
4
|
+
type Props<ParamList extends ReactNavigation.RootParamList> = LinkProps<ParamList> & Omit<TextProps, 'disabled'> & {
|
|
5
|
+
target?: string;
|
|
6
|
+
onPress?: (e: React.MouseEvent<HTMLAnchorElement, MouseEvent> | GestureResponderEvent) => void;
|
|
7
|
+
disabled?: boolean | null;
|
|
8
|
+
children: React.ReactNode;
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* Component to render link to another screen using a path.
|
|
12
|
+
* Uses an anchor tag on the web.
|
|
13
|
+
*
|
|
14
|
+
* @param props.screen Name of the screen to navigate to (e.g. `'Feeds'`).
|
|
15
|
+
* @param props.params Params to pass to the screen to navigate to (e.g. `{ sort: 'hot' }`).
|
|
16
|
+
* @param props.href Optional absolute path to use for the href (e.g. `/feeds/hot`).
|
|
17
|
+
* @param props.action Optional action to use for in-page navigation. By default, the path is parsed to an action based on linking config.
|
|
18
|
+
* @param props.children Child elements to render the content.
|
|
19
|
+
*/
|
|
20
|
+
export declare function Link<ParamList extends ReactNavigation.RootParamList>({ screen, params, action, href, style, ...rest }: Props<ParamList>): React.CElement<TextProps, Text>;
|
|
21
|
+
export {};
|
|
22
|
+
//# sourceMappingURL=Link.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Link.d.ts","sourceRoot":"","sources":["../../../../src/Link.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EACL,KAAK,qBAAqB,EAE1B,IAAI,EACJ,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AAEtB,OAAO,EAAE,KAAK,SAAS,EAAgB,MAAM,gBAAgB,CAAC;AAE9D,KAAK,KAAK,CAAC,SAAS,SAAS,eAAe,CAAC,aAAa,IACxD,SAAS,CAAC,SAAS,CAAC,GAClB,IAAI,CAAC,SAAS,EAAE,UAAU,CAAC,GAAG;IAC5B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,CACR,CAAC,EACG,KAAK,CAAC,UAAU,CAAC,iBAAiB,EAAE,UAAU,CAAC,GAC/C,qBAAqB,KACtB,IAAI,CAAC;IACV,QAAQ,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IAC1B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,CAAC;AAEN;;;;;;;;;GASG;AACH,wBAAgB,IAAI,CAAC,SAAS,SAAS,eAAe,CAAC,aAAa,EAAE,EACpE,MAAM,EACN,MAAM,EACN,MAAM,EACN,IAAI,EACJ,KAAK,EACL,GAAG,IAAI,EACR,EAAE,KAAK,CAAC,SAAS,CAAC,mCA2BlB"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { ParamListBase } from '@react-navigation/core';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import type { LinkingOptions } from './types';
|
|
4
|
+
export declare const LinkingContext: React.Context<{
|
|
5
|
+
options?: LinkingOptions<ParamListBase>;
|
|
6
|
+
}>;
|
|
7
|
+
//# sourceMappingURL=LinkingContext.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LinkingContext.d.ts","sourceRoot":"","sources":["../../../../src/LinkingContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAI9C,eAAO,MAAM,cAAc;cACf,cAAc,CAAC,aAAa,CAAC;EAKvC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LocaleDirContext.d.ts","sourceRoot":"","sources":["../../../../src/LocaleDirContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE/C,eAAO,MAAM,gBAAgB,gCAA8C,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { type NavigationContainerProps, type NavigationContainerRef } from '@react-navigation/core';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import type { DocumentTitleOptions, LinkingOptions, LocaleDirection } from './types';
|
|
4
|
+
declare global {
|
|
5
|
+
var REACT_NAVIGATION_DEVTOOLS: WeakMap<NavigationContainerRef<any>, {
|
|
6
|
+
readonly linking: LinkingOptions<any>;
|
|
7
|
+
}>;
|
|
8
|
+
}
|
|
9
|
+
type Props<ParamList extends {}> = NavigationContainerProps & {
|
|
10
|
+
direction?: LocaleDirection;
|
|
11
|
+
linking?: LinkingOptions<ParamList>;
|
|
12
|
+
fallback?: React.ReactNode;
|
|
13
|
+
documentTitle?: DocumentTitleOptions;
|
|
14
|
+
};
|
|
15
|
+
export declare const NavigationContainer: <RootParamList extends {} = ReactNavigation.RootParamList>(props: Props<RootParamList> & {
|
|
16
|
+
ref?: React.Ref<NavigationContainerRef<RootParamList>>;
|
|
17
|
+
}) => React.ReactElement;
|
|
18
|
+
export {};
|
|
19
|
+
//# sourceMappingURL=NavigationContainer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NavigationContainer.d.ts","sourceRoot":"","sources":["../../../../src/NavigationContainer.tsx"],"names":[],"mappings":"AAAA,OAAO,EAKL,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAK5B,MAAM,wBAAwB,CAAC;AAChC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAO/B,OAAO,KAAK,EACV,oBAAoB,EACpB,cAAc,EACd,eAAe,EAChB,MAAM,SAAS,CAAC;AAOjB,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,EAAE,IAAI,wBAAwB,GAAG;IAC5D,SAAS,CAAC,EAAE,eAAe,CAAC;IAC5B,OAAO,CAAC,EAAE,cAAc,CAAC,SAAS,CAAC,CAAC;IACpC,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,aAAa,CAAC,EAAE,oBAAoB,CAAC;CACtC,CAAC;AA8IF,eAAO,MAAM,mBAAmB,EAE3B,CAAC,aAAwD,SAAlC,EAAE,GAAG,eAAe,CAAC,aAAa,EAC5D,KAAK,EAAE,KAAK,CAAC,aAAa,CAAC,GAAG;IAC5B,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,sBAAsB,CAAC,aAAa,CAAC,CAAC,CAAC;CACxD,KACE,KAAK,CAAC,YAAY,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { type ServerContextType } from './ServerContext';
|
|
3
|
+
import type { ServerContainerRef } from './types';
|
|
4
|
+
/**
|
|
5
|
+
* Container component for server rendering.
|
|
6
|
+
*
|
|
7
|
+
* @param props.location Location object to base the initial URL for SSR.
|
|
8
|
+
* @param props.children Child elements to render the content.
|
|
9
|
+
* @param props.ref Ref object which contains helper methods.
|
|
10
|
+
*/
|
|
11
|
+
export declare const ServerContainer: React.ForwardRefExoticComponent<ServerContextType & {
|
|
12
|
+
children: React.ReactNode;
|
|
13
|
+
} & React.RefAttributes<ServerContainerRef>>;
|
|
14
|
+
//# sourceMappingURL=ServerContainer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ServerContainer.d.ts","sourceRoot":"","sources":["../../../../src/ServerContainer.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAiB,KAAK,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACxE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAMlD;;;;;;GAMG;AACH,eAAO,MAAM,eAAe;cAVhB,KAAK,CAAC,SAAS;4CAkDzB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ServerContext.d.ts","sourceRoot":"","sources":["../../../../src/ServerContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,MAAM,MAAM,iBAAiB,GAAG;IAC9B,QAAQ,CAAC,EAAE;QACT,QAAQ,EAAE,MAAM,CAAC;QACjB,MAAM,EAAE,MAAM,CAAC;KAChB,CAAC;CACH,CAAC;AAEF,eAAO,MAAM,aAAa,8CAEzB,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export declare const UnhandledLinkingContext: React.Context<{
|
|
3
|
+
lastUnhandledLink: string | undefined;
|
|
4
|
+
setLastUnhandledLink: (lastUnhandledUrl: string | undefined) => void;
|
|
5
|
+
}>;
|
|
6
|
+
//# sourceMappingURL=UnhandledLinkingContext.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UnhandledLinkingContext.d.ts","sourceRoot":"","sources":["../../../../src/UnhandledLinkingContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,eAAO,MAAM,uBAAuB;uBACf,MAAM,GAAG,SAAS;0BACf,CAAC,gBAAgB,EAAE,MAAM,GAAG,SAAS,KAAK,IAAI;EAQpE,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { type DefaultNavigatorOptions, type NavigationListBase, type ParamListBase, type StackNavigationState, type TypedNavigator } from '@react-navigation/core';
|
|
2
|
+
declare const StackNavigator: (props: DefaultNavigatorOptions<ParamListBase, string | undefined, StackNavigationState<ParamListBase>, {}, {}, unknown>) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export declare function createStackNavigator<ParamList extends ParamListBase>(): TypedNavigator<{
|
|
4
|
+
ParamList: ParamList;
|
|
5
|
+
NavigatorID: string | undefined;
|
|
6
|
+
State: StackNavigationState<ParamList>;
|
|
7
|
+
ScreenOptions: {};
|
|
8
|
+
EventMap: {};
|
|
9
|
+
NavigationList: NavigationListBase<ParamList>;
|
|
10
|
+
Navigator: typeof StackNavigator;
|
|
11
|
+
}>;
|
|
12
|
+
export {};
|
|
13
|
+
//# sourceMappingURL=createStackNavigator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createStackNavigator.d.ts","sourceRoot":"","sources":["../../../../../src/__stubs__/createStackNavigator.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,uBAAuB,EAC5B,KAAK,kBAAkB,EACvB,KAAK,aAAa,EAClB,KAAK,oBAAoB,EAEzB,KAAK,cAAc,EAEpB,MAAM,wBAAwB,CAAC;AAEhC,QAAA,MAAM,cAAc,UACX,uBAAuB,CAC5B,aAAa,EACb,MAAM,GAAG,SAAS,EAClB,oBAAoB,CAAC,aAAa,CAAC,EACnC,EAAE,EACF,EAAE,EACF,OAAO,CACR,4CAYF,CAAC;AAEF,wBAAgB,oBAAoB,CAClC,SAAS,SAAS,aAAa,KAC5B,cAAc,CAAC;IAClB,SAAS,EAAE,SAAS,CAAC;IACrB,WAAW,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC,KAAK,EAAE,oBAAoB,CAAC,SAAS,CAAC,CAAC;IACvC,aAAa,EAAE,EAAE,CAAC;IAClB,QAAQ,EAAE,EAAE,CAAC;IACb,cAAc,EAAE,kBAAkB,CAAC,SAAS,CAAC,CAAC;IAC9C,SAAS,EAAE,OAAO,cAAc,CAAC;CAClC,CAAC,CAED"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export declare const window: {
|
|
2
|
+
document: {
|
|
3
|
+
title: string;
|
|
4
|
+
};
|
|
5
|
+
readonly location: URL;
|
|
6
|
+
history: {
|
|
7
|
+
readonly state: any;
|
|
8
|
+
pushState(state: any, _: string, path: string): void;
|
|
9
|
+
replaceState(state: any, _: string, path: string): void;
|
|
10
|
+
go(n: number): void;
|
|
11
|
+
back(): void;
|
|
12
|
+
forward(): void;
|
|
13
|
+
};
|
|
14
|
+
addEventListener: (type: "popstate", listener: () => void) => void;
|
|
15
|
+
removeEventListener: (type: "popstate", listener: () => void) => void;
|
|
16
|
+
readonly window: any;
|
|
17
|
+
};
|
|
18
|
+
//# sourceMappingURL=window.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"window.d.ts","sourceRoot":"","sources":["../../../../../src/__stubs__/window.tsx"],"names":[],"mappings":"AAiEA,eAAO,MAAM,MAAM;;;;;;;yBApDA,GAAG,KAAK,MAAM,QAAQ,MAAM;4BASzB,GAAG,KAAK,MAAM,QAAQ,MAAM;cAO1C,MAAM;;;;6BAwBkB,UAAU,YAAY,MAAM,IAAI;gCAM7B,UAAU,YAAY,MAAM,IAAI;;CAiBlE,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { NavigationState } from '@react-navigation/core';
|
|
2
|
+
type HistoryRecord = {
|
|
3
|
+
id: string;
|
|
4
|
+
state: NavigationState;
|
|
5
|
+
path: string;
|
|
6
|
+
};
|
|
7
|
+
export declare function createMemoryHistory(): {
|
|
8
|
+
readonly index: number;
|
|
9
|
+
get(index: number): HistoryRecord;
|
|
10
|
+
backIndex({ path }: {
|
|
11
|
+
path: string;
|
|
12
|
+
}): number;
|
|
13
|
+
push({ path, state }: {
|
|
14
|
+
path: string;
|
|
15
|
+
state: NavigationState;
|
|
16
|
+
}): void;
|
|
17
|
+
replace({ path, state }: {
|
|
18
|
+
path: string;
|
|
19
|
+
state: NavigationState;
|
|
20
|
+
}): void;
|
|
21
|
+
go(n: number): Promise<void> | undefined;
|
|
22
|
+
listen(listener: () => void): () => void;
|
|
23
|
+
};
|
|
24
|
+
export {};
|
|
25
|
+
//# sourceMappingURL=createMemoryHistory.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createMemoryHistory.d.ts","sourceRoot":"","sources":["../../../../src/createMemoryHistory.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAG9D,KAAK,aAAa,GAAG;IAEnB,EAAE,EAAE,MAAM,CAAC;IAEX,KAAK,EAAE,eAAe,CAAC;IAEvB,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,wBAAgB,mBAAmB;;eAiCpB,MAAM;wBAIG;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE;0BAad;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,eAAe,CAAA;KAAE;6BAmBrC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,eAAe,CAAA;KAAE;UAoC3D,MAAM;qBA2FK,MAAM,IAAI;EAiB9B"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { type NavigationContainerRef, type ParamListBase, type StaticNavigation } from '@react-navigation/core';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { NavigationContainer } from './NavigationContainer';
|
|
4
|
+
import type { LinkingOptions } from './types';
|
|
5
|
+
type Props = Omit<React.ComponentProps<typeof NavigationContainer>, 'linking' | 'children'> & {
|
|
6
|
+
/**
|
|
7
|
+
* Options for deep linking.
|
|
8
|
+
*/
|
|
9
|
+
linking?: Omit<LinkingOptions<ParamListBase>, 'config' | 'enabled'> & {
|
|
10
|
+
/**
|
|
11
|
+
* Whether deep link handling should be enabled.
|
|
12
|
+
* Defaults to `true` if any `linking` options are specified, `false` otherwise.
|
|
13
|
+
*
|
|
14
|
+
* When 'auto' is specified, all leaf screens will get a autogenerated path.
|
|
15
|
+
* The generated path will be a kebab-case version of the screen name.
|
|
16
|
+
* This can be overridden for specific screens by specifying `linking` for the screen.
|
|
17
|
+
*/
|
|
18
|
+
enabled?: 'auto' | true | false;
|
|
19
|
+
/**
|
|
20
|
+
* Additional configuration
|
|
21
|
+
*/
|
|
22
|
+
config?: Omit<NonNullable<LinkingOptions<ParamListBase>['config']>, 'screens'>;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* Create a navigation component from a static navigation config.
|
|
27
|
+
* The returned component is a wrapper around `NavigationContainer`.
|
|
28
|
+
*
|
|
29
|
+
* @param tree Static navigation config.
|
|
30
|
+
* @returns Navigation component to use in your app.
|
|
31
|
+
*/
|
|
32
|
+
export declare function createStaticNavigation(tree: StaticNavigation<any, any, any>): React.ForwardRefExoticComponent<Omit<Props, "ref"> & React.RefAttributes<NavigationContainerRef<ParamListBase>>>;
|
|
33
|
+
export {};
|
|
34
|
+
//# sourceMappingURL=createStaticNavigation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createStaticNavigation.d.ts","sourceRoot":"","sources":["../../../../src/createStaticNavigation.tsx"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,sBAAsB,EAC3B,KAAK,aAAa,EAClB,KAAK,gBAAgB,EACtB,MAAM,wBAAwB,CAAC;AAChC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAE9C,KAAK,KAAK,GAAG,IAAI,CACf,KAAK,CAAC,cAAc,CAAC,OAAO,mBAAmB,CAAC,EAChD,SAAS,GAAG,UAAU,CACvB,GAAG;IACF;;OAEG;IACH,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,CAAC,aAAa,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAC,GAAG;QACpE;;;;;;;WAOG;QACH,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,KAAK,CAAC;QAChC;;WAEG;QACH,MAAM,CAAC,EAAE,IAAI,CACX,WAAW,CAAC,cAAc,CAAC,aAAa,CAAC,CAAC,QAAQ,CAAC,CAAC,EACpD,SAAS,CACV,CAAC;KACH,CAAC;CACH,CAAC;AAEF;;;;;;GAMG;AACH,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,gBAAgB,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,oHAoD3E"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"extractPathFromURL.d.ts","sourceRoot":"","sources":["../../../../src/extractPathFromURL.tsx"],"names":[],"mappings":"AAEA,wBAAgB,kBAAkB,CAAC,QAAQ,EAAE,MAAM,EAAE,EAAE,GAAG,EAAE,MAAM,sBA0BjE"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export { createStaticNavigation } from './createStaticNavigation';
|
|
2
|
+
export { Link } from './Link';
|
|
3
|
+
export { LinkingContext } from './LinkingContext';
|
|
4
|
+
export { NavigationContainer } from './NavigationContainer';
|
|
5
|
+
export { ServerContainer } from './ServerContainer';
|
|
6
|
+
export { DarkTheme } from './theming/DarkTheme';
|
|
7
|
+
export { DefaultTheme } from './theming/DefaultTheme';
|
|
8
|
+
export * from './types';
|
|
9
|
+
export { useLinkBuilder } from './useLinkBuilder';
|
|
10
|
+
export { type LinkProps, useLinkProps } from './useLinkProps';
|
|
11
|
+
export { useLocale } from './useLocale';
|
|
12
|
+
export { useScrollToTop } from './useScrollToTop';
|
|
13
|
+
export { UNSTABLE_useUnhandledLinking } from './useUnhandledLinking';
|
|
14
|
+
export * from '@react-navigation/core';
|
|
15
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACtD,cAAc,SAAS,CAAC;AACxB,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,KAAK,SAAS,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9D,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,4BAA4B,EAAE,MAAM,uBAAuB,CAAC;AACrE,cAAc,wBAAwB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DarkTheme.d.ts","sourceRoot":"","sources":["../../../../../src/theming/DarkTheme.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAGtC,eAAO,MAAM,SAAS,EAAE,KAWvB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DefaultTheme.d.ts","sourceRoot":"","sources":["../../../../../src/theming/DefaultTheme.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAGtC,eAAO,MAAM,YAAY,EAAE,KAW1B,CAAC"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
export declare const fonts: {
|
|
2
|
+
readonly regular: {
|
|
3
|
+
readonly fontFamily: "system-ui, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\"";
|
|
4
|
+
readonly fontWeight: "400";
|
|
5
|
+
};
|
|
6
|
+
readonly medium: {
|
|
7
|
+
readonly fontFamily: "system-ui, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\"";
|
|
8
|
+
readonly fontWeight: "500";
|
|
9
|
+
};
|
|
10
|
+
readonly bold: {
|
|
11
|
+
readonly fontFamily: "system-ui, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\"";
|
|
12
|
+
readonly fontWeight: "600";
|
|
13
|
+
};
|
|
14
|
+
readonly heavy: {
|
|
15
|
+
readonly fontFamily: "system-ui, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\"";
|
|
16
|
+
readonly fontWeight: "700";
|
|
17
|
+
};
|
|
18
|
+
} | {
|
|
19
|
+
readonly regular: {
|
|
20
|
+
readonly fontFamily: "System";
|
|
21
|
+
readonly fontWeight: "400";
|
|
22
|
+
};
|
|
23
|
+
readonly medium: {
|
|
24
|
+
readonly fontFamily: "System";
|
|
25
|
+
readonly fontWeight: "500";
|
|
26
|
+
};
|
|
27
|
+
readonly bold: {
|
|
28
|
+
readonly fontFamily: "System";
|
|
29
|
+
readonly fontWeight: "600";
|
|
30
|
+
};
|
|
31
|
+
readonly heavy: {
|
|
32
|
+
readonly fontFamily: "System";
|
|
33
|
+
readonly fontWeight: "700";
|
|
34
|
+
};
|
|
35
|
+
} | {
|
|
36
|
+
readonly regular: {
|
|
37
|
+
readonly fontFamily: "sans-serif";
|
|
38
|
+
readonly fontWeight: "normal";
|
|
39
|
+
};
|
|
40
|
+
readonly medium: {
|
|
41
|
+
readonly fontFamily: "sans-serif-medium";
|
|
42
|
+
readonly fontWeight: "normal";
|
|
43
|
+
};
|
|
44
|
+
readonly bold: {
|
|
45
|
+
readonly fontFamily: "sans-serif";
|
|
46
|
+
readonly fontWeight: "600";
|
|
47
|
+
};
|
|
48
|
+
readonly heavy: {
|
|
49
|
+
readonly fontFamily: "sans-serif";
|
|
50
|
+
readonly fontWeight: "700";
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
//# sourceMappingURL=fonts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fonts.d.ts","sourceRoot":"","sources":["../../../../../src/theming/fonts.tsx"],"names":[],"mappings":"AAOA,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuDkC,CAAC"}
|
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
import type { getActionFromState as getActionFromStateDefault, getPathFromState as getPathFromStateDefault, getStateFromPath as getStateFromPathDefault, PathConfigMap, Route } from '@react-navigation/core';
|
|
2
|
+
declare global {
|
|
3
|
+
namespace ReactNavigation {
|
|
4
|
+
interface Theme extends NativeTheme {
|
|
5
|
+
}
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
type FontStyle = {
|
|
9
|
+
fontFamily: string;
|
|
10
|
+
fontWeight: 'normal' | 'bold' | '100' | '200' | '300' | '400' | '500' | '600' | '700' | '800' | '900';
|
|
11
|
+
};
|
|
12
|
+
interface NativeTheme {
|
|
13
|
+
dark: boolean;
|
|
14
|
+
colors: {
|
|
15
|
+
primary: string;
|
|
16
|
+
background: string;
|
|
17
|
+
card: string;
|
|
18
|
+
text: string;
|
|
19
|
+
border: string;
|
|
20
|
+
notification: string;
|
|
21
|
+
};
|
|
22
|
+
fonts: {
|
|
23
|
+
regular: FontStyle;
|
|
24
|
+
medium: FontStyle;
|
|
25
|
+
bold: FontStyle;
|
|
26
|
+
heavy: FontStyle;
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
export type Theme = NativeTheme;
|
|
30
|
+
export type LocaleDirection = 'ltr' | 'rtl';
|
|
31
|
+
export type LinkingOptions<ParamList extends {}> = {
|
|
32
|
+
/**
|
|
33
|
+
* Whether deep link handling should be enabled.
|
|
34
|
+
* Defaults to true.
|
|
35
|
+
*/
|
|
36
|
+
enabled?: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* The prefixes are stripped from the URL before parsing them.
|
|
39
|
+
* Usually they are the `scheme` + `host` (e.g. `myapp://chat?user=jane`)
|
|
40
|
+
*
|
|
41
|
+
* This is not supported on Web.
|
|
42
|
+
*
|
|
43
|
+
* @example
|
|
44
|
+
* ```js
|
|
45
|
+
* {
|
|
46
|
+
* prefixes: [
|
|
47
|
+
* "myapp://", // App-specific scheme
|
|
48
|
+
* "https://example.com", // Prefix for universal links
|
|
49
|
+
* "https://*.example.com" // Prefix which matches any subdomain
|
|
50
|
+
* ]
|
|
51
|
+
* }
|
|
52
|
+
* ```
|
|
53
|
+
*/
|
|
54
|
+
prefixes: string[];
|
|
55
|
+
/**
|
|
56
|
+
* Optional function which takes an incoming URL returns a boolean
|
|
57
|
+
* indicating whether React Navigation should handle it.
|
|
58
|
+
*
|
|
59
|
+
* This can be used to disable deep linking for specific URLs.
|
|
60
|
+
* e.g. URLs used for authentication, and not for deep linking to screens.
|
|
61
|
+
*
|
|
62
|
+
* This is not supported on Web.
|
|
63
|
+
*
|
|
64
|
+
* @example
|
|
65
|
+
* ```js
|
|
66
|
+
* {
|
|
67
|
+
* // Filter out URLs used by expo-auth-session
|
|
68
|
+
* filter: (url) => !url.includes('+expo-auth-session')
|
|
69
|
+
* }
|
|
70
|
+
* ```
|
|
71
|
+
*/
|
|
72
|
+
filter?: (url: string) => boolean;
|
|
73
|
+
/**
|
|
74
|
+
* Config to fine-tune how to parse the path.
|
|
75
|
+
*
|
|
76
|
+
* @example
|
|
77
|
+
* ```js
|
|
78
|
+
* {
|
|
79
|
+
* Chat: {
|
|
80
|
+
* path: 'chat/:author/:id',
|
|
81
|
+
* parse: { id: Number }
|
|
82
|
+
* }
|
|
83
|
+
* }
|
|
84
|
+
* ```
|
|
85
|
+
*/
|
|
86
|
+
config?: {
|
|
87
|
+
/**
|
|
88
|
+
* Path string to match against for the whole navigation tree.
|
|
89
|
+
* It's not possible to specify params here since this doesn't belong to a screen.
|
|
90
|
+
* This is useful when the whole app is under a specific path.
|
|
91
|
+
* e.g. all of the screens are under `/admin` in `https://example.com/admin`
|
|
92
|
+
*/
|
|
93
|
+
path?: string;
|
|
94
|
+
/**
|
|
95
|
+
* Path configuration for child screens.
|
|
96
|
+
*/
|
|
97
|
+
screens: PathConfigMap<ParamList>;
|
|
98
|
+
/**
|
|
99
|
+
* Name of the initial route to use for the root navigator.
|
|
100
|
+
*/
|
|
101
|
+
initialRouteName?: keyof ParamList;
|
|
102
|
+
};
|
|
103
|
+
/**
|
|
104
|
+
* Custom function to get the initial URL used for linking.
|
|
105
|
+
* Uses `Linking.getInitialURL()` by default.
|
|
106
|
+
*
|
|
107
|
+
* This is not supported on Web.
|
|
108
|
+
*
|
|
109
|
+
* @example
|
|
110
|
+
* ```js
|
|
111
|
+
* {
|
|
112
|
+
* getInitialURL () => Linking.getInitialURL(),
|
|
113
|
+
* }
|
|
114
|
+
* ```
|
|
115
|
+
*/
|
|
116
|
+
getInitialURL?: () => string | null | undefined | Promise<string | null | undefined>;
|
|
117
|
+
/**
|
|
118
|
+
* Custom function to get subscribe to URL updates.
|
|
119
|
+
* Uses `Linking.addEventListener('url', callback)` by default.
|
|
120
|
+
*
|
|
121
|
+
* This is not supported on Web.
|
|
122
|
+
*
|
|
123
|
+
* @example
|
|
124
|
+
* ```js
|
|
125
|
+
* {
|
|
126
|
+
* subscribe: (listener) => {
|
|
127
|
+
* const onReceiveURL = ({ url }) => listener(url);
|
|
128
|
+
*
|
|
129
|
+
* Linking.addEventListener('url', onReceiveURL);
|
|
130
|
+
*
|
|
131
|
+
* return () => Linking.removeEventListener('url', onReceiveURL);
|
|
132
|
+
* }
|
|
133
|
+
* }
|
|
134
|
+
* ```
|
|
135
|
+
*/
|
|
136
|
+
subscribe?: (listener: (url: string) => void) => undefined | void | (() => void);
|
|
137
|
+
/**
|
|
138
|
+
* Custom function to parse the URL to a valid navigation state (advanced).
|
|
139
|
+
*/
|
|
140
|
+
getStateFromPath?: typeof getStateFromPathDefault;
|
|
141
|
+
/**
|
|
142
|
+
* Custom function to convert the state object to a valid URL (advanced).
|
|
143
|
+
* Only applicable on Web.
|
|
144
|
+
*/
|
|
145
|
+
getPathFromState?: typeof getPathFromStateDefault;
|
|
146
|
+
/**
|
|
147
|
+
* Custom function to convert the state object to a valid action (advanced).
|
|
148
|
+
*/
|
|
149
|
+
getActionFromState?: typeof getActionFromStateDefault;
|
|
150
|
+
};
|
|
151
|
+
export type DocumentTitleOptions = {
|
|
152
|
+
enabled?: boolean;
|
|
153
|
+
formatter?: (options: Record<string, any> | undefined, route: Route<string> | undefined) => string;
|
|
154
|
+
};
|
|
155
|
+
export type ServerContainerRef = {
|
|
156
|
+
getCurrentOptions(): Record<string, any> | undefined;
|
|
157
|
+
};
|
|
158
|
+
export {};
|
|
159
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/types.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,kBAAkB,IAAI,yBAAyB,EAC/C,gBAAgB,IAAI,uBAAuB,EAC3C,gBAAgB,IAAI,uBAAuB,EAC3C,aAAa,EACb,KAAK,EACN,MAAM,wBAAwB,CAAC;AAEhC,OAAO,CAAC,MAAM,CAAC;IAEb,UAAU,eAAe,CAAC;QACxB,UAAU,KAAM,SAAQ,WAAW;SAAG;KACvC;CACF;AAED,KAAK,SAAS,GAAG;IACf,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EACN,QAAQ,GACR,MAAM,GACN,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,CAAC;CACX,CAAC;AAEF,UAAU,WAAW;IACnB,IAAI,EAAE,OAAO,CAAC;IACd,MAAM,EAAE;QACN,OAAO,EAAE,MAAM,CAAC;QAChB,UAAU,EAAE,MAAM,CAAC;QACnB,IAAI,EAAE,MAAM,CAAC;QACb,IAAI,EAAE,MAAM,CAAC;QACb,MAAM,EAAE,MAAM,CAAC;QACf,YAAY,EAAE,MAAM,CAAC;KACtB,CAAC;IACF,KAAK,EAAE;QACL,OAAO,EAAE,SAAS,CAAC;QACnB,MAAM,EAAE,SAAS,CAAC;QAClB,IAAI,EAAE,SAAS,CAAC;QAChB,KAAK,EAAE,SAAS,CAAC;KAClB,CAAC;CACH;AAED,MAAM,MAAM,KAAK,GAAG,WAAW,CAAC;AAEhC,MAAM,MAAM,eAAe,GAAG,KAAK,GAAG,KAAK,CAAC;AAE5C,MAAM,MAAM,cAAc,CAAC,SAAS,SAAS,EAAE,IAAI;IACjD;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;;;;;;;;;;;;;;OAgBG;IACH,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB;;;;;;;;;;;;;;;;OAgBG;IACH,MAAM,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,OAAO,CAAC;IAClC;;;;;;;;;;;;OAYG;IACH,MAAM,CAAC,EAAE;QACP;;;;;WAKG;QACH,IAAI,CAAC,EAAE,MAAM,CAAC;QACd;;WAEG;QACH,OAAO,EAAE,aAAa,CAAC,SAAS,CAAC,CAAC;QAClC;;WAEG;QACH,gBAAgB,CAAC,EAAE,MAAM,SAAS,CAAC;KACpC,CAAC;IACF;;;;;;;;;;;;OAYG;IACH,aAAa,CAAC,EAAE,MACZ,MAAM,GACN,IAAI,GACJ,SAAS,GACT,OAAO,CAAC,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC,CAAC;IACvC;;;;;;;;;;;;;;;;;;OAkBG;IACH,SAAS,CAAC,EAAE,CACV,QAAQ,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,KAC5B,SAAS,GAAG,IAAI,GAAG,CAAC,MAAM,IAAI,CAAC,CAAC;IACrC;;OAEG;IACH,gBAAgB,CAAC,EAAE,OAAO,uBAAuB,CAAC;IAClD;;;OAGG;IACH,gBAAgB,CAAC,EAAE,OAAO,uBAAuB,CAAC;IAClD;;OAEG;IACH,kBAAkB,CAAC,EAAE,OAAO,yBAAyB,CAAC;CACvD,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG;IACjC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,SAAS,CAAC,EAAE,CACV,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,SAAS,EACxC,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,SAAS,KAC7B,MAAM,CAAC;CACb,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG;IAC/B,iBAAiB,IAAI,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,SAAS,CAAC;CACtD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useBackButton.d.ts","sourceRoot":"","sources":["../../../../src/useBackButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,sBAAsB,EACtB,aAAa,EACd,MAAM,wBAAwB,CAAC;AAGhC,wBAAgB,aAAa,CAC3B,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,sBAAsB,CAAC,aAAa,CAAC,CAAC,QAI1D"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { NavigationContainerRef, ParamListBase } from '@react-navigation/core';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
export declare function useBackButton(ref: React.RefObject<NavigationContainerRef<ParamListBase>>): void;
|
|
4
|
+
//# sourceMappingURL=useBackButton.native.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useBackButton.native.d.ts","sourceRoot":"","sources":["../../../../src/useBackButton.native.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,sBAAsB,EACtB,aAAa,EACd,MAAM,wBAAwB,CAAC;AAChC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,wBAAgB,aAAa,CAC3B,GAAG,EAAE,KAAK,CAAC,SAAS,CAAC,sBAAsB,CAAC,aAAa,CAAC,CAAC,QAwB5D"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { NavigationContainerRef, ParamListBase } from '@react-navigation/core';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import type { DocumentTitleOptions } from './types';
|
|
4
|
+
/**
|
|
5
|
+
* Set the document title for the active screen
|
|
6
|
+
*/
|
|
7
|
+
export declare function useDocumentTitle(ref: React.RefObject<NavigationContainerRef<ParamListBase>>, { enabled, formatter, }?: DocumentTitleOptions): void;
|
|
8
|
+
//# sourceMappingURL=useDocumentTitle.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useDocumentTitle.d.ts","sourceRoot":"","sources":["../../../../src/useDocumentTitle.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,sBAAsB,EACtB,aAAa,EACd,MAAM,wBAAwB,CAAC;AAChC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAEpD;;GAEG;AACH,wBAAgB,gBAAgB,CAC9B,GAAG,EAAE,KAAK,CAAC,SAAS,CAAC,sBAAsB,CAAC,aAAa,CAAC,CAAC,EAC3D,EACE,OAAc,EACd,SAA6D,GAC9D,GAAE,oBAAyB,QAwB7B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useDocumentTitle.native.d.ts","sourceRoot":"","sources":["../../../../src/useDocumentTitle.native.tsx"],"names":[],"mappings":"AACA,wBAAgB,gBAAgB,SAE/B"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { CommonActions, type ParamListBase } from '@react-navigation/core';
|
|
2
|
+
/**
|
|
3
|
+
* Helpers to build href or action based on the linking options.
|
|
4
|
+
* @returns `buildHref` to build an `href` for screen and `buildAction` to build an action from an `href`.
|
|
5
|
+
*/
|
|
6
|
+
export declare function useLinkBuilder(): {
|
|
7
|
+
buildHref: (name: string, params?: object) => string | undefined;
|
|
8
|
+
buildAction: (href: string) => {
|
|
9
|
+
type: "NAVIGATE";
|
|
10
|
+
payload: {
|
|
11
|
+
name: string;
|
|
12
|
+
params?: import("@react-navigation/core").NavigatorScreenParams<Readonly<{
|
|
13
|
+
key: string;
|
|
14
|
+
index: number;
|
|
15
|
+
routeNames: string[];
|
|
16
|
+
history?: unknown[];
|
|
17
|
+
routes: import("@react-navigation/core").NavigationRoute<ParamListBase, string>[];
|
|
18
|
+
type: string;
|
|
19
|
+
stale: false;
|
|
20
|
+
}>>;
|
|
21
|
+
path?: string;
|
|
22
|
+
};
|
|
23
|
+
} | CommonActions.Action;
|
|
24
|
+
};
|
|
25
|
+
//# sourceMappingURL=useLinkBuilder.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useLinkBuilder.d.ts","sourceRoot":"","sources":["../../../../src/useLinkBuilder.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EAOb,KAAK,aAAa,EACnB,MAAM,wBAAwB,CAAC;AAqChC;;;GAGG;AACH,wBAAgB,cAAc;sBAKnB,MAAM,WAAW,MAAM;wBA6BvB,MAAM;;;;;;;;;;;;;;;;EA0BhB"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { type NavigationAction } from '@react-navigation/core';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { type GestureResponderEvent } from 'react-native';
|
|
4
|
+
export type LinkProps<ParamList extends ReactNavigation.RootParamList, RouteName extends keyof ParamList = keyof ParamList> = ({
|
|
5
|
+
href?: string;
|
|
6
|
+
action?: NavigationAction;
|
|
7
|
+
} & (RouteName extends unknown ? undefined extends ParamList[RouteName] ? {
|
|
8
|
+
screen: RouteName;
|
|
9
|
+
params?: ParamList[RouteName];
|
|
10
|
+
} : {
|
|
11
|
+
screen: RouteName;
|
|
12
|
+
params: ParamList[RouteName];
|
|
13
|
+
} : never)) | {
|
|
14
|
+
href?: string;
|
|
15
|
+
action: NavigationAction;
|
|
16
|
+
screen?: undefined;
|
|
17
|
+
params?: undefined;
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* Hook to get props for an anchor tag so it can work with in page navigation.
|
|
21
|
+
*
|
|
22
|
+
* @param props.screen Name of the screen to navigate to (e.g. `'Feeds'`).
|
|
23
|
+
* @param props.params Params to pass to the screen to navigate to (e.g. `{ sort: 'hot' }`).
|
|
24
|
+
* @param props.href Optional absolute path to use for the href (e.g. `/feeds/hot`).
|
|
25
|
+
* @param props.action Optional action to use for in-page navigation. By default, the path is parsed to an action based on linking config.
|
|
26
|
+
*/
|
|
27
|
+
export declare function useLinkProps<ParamList extends ReactNavigation.RootParamList>({ screen, params, href, action, }: LinkProps<ParamList>): {
|
|
28
|
+
href: string | undefined;
|
|
29
|
+
accessibilityRole: "link";
|
|
30
|
+
onPress: (e?: React.MouseEvent<HTMLAnchorElement, MouseEvent> | GestureResponderEvent) => void;
|
|
31
|
+
};
|
|
32
|
+
//# sourceMappingURL=useLinkProps.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useLinkProps.d.ts","sourceRoot":"","sources":["../../../../src/useLinkProps.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,gBAAgB,EAKtB,MAAM,wBAAwB,CAAC;AAEhC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,KAAK,qBAAqB,EAAY,MAAM,cAAc,CAAC;AAIpE,MAAM,MAAM,SAAS,CACnB,SAAS,SAAS,eAAe,CAAC,aAAa,EAC/C,SAAS,SAAS,MAAM,SAAS,GAAG,MAAM,SAAS,IAEjD,CAAC;IACC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,gBAAgB,CAAC;CAC3B,GAAG,CAAC,SAAS,SAAS,OAAO,GAC1B,SAAS,SAAS,SAAS,CAAC,SAAS,CAAC,GACpC;IAAE,MAAM,EAAE,SAAS,CAAC;IAAC,MAAM,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAA;CAAE,GACpD;IAAE,MAAM,EAAE,SAAS,CAAC;IAAC,MAAM,EAAE,SAAS,CAAC,SAAS,CAAC,CAAA;CAAE,GACrD,KAAK,CAAC,CAAC,GACX;IACE,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,gBAAgB,CAAC;IACzB,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,MAAM,CAAC,EAAE,SAAS,CAAC;CACpB,CAAC;AA+BN;;;;;;;GAOG;AACH,wBAAgB,YAAY,CAAC,SAAS,SAAS,eAAe,CAAC,aAAa,EAAE,EAC5E,MAAM,EACN,MAAM,EACN,IAAI,EACJ,MAAM,GACP,EAAE,SAAS,CAAC,SAAS,CAAC;;;kBAMf,KAAK,CAAC,UAAU,CAAC,iBAAiB,EAAE,UAAU,CAAC,GAAG,qBAAqB;EA+D9E"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useLinkTo.d.ts","sourceRoot":"","sources":["../../../../src/useLinkTo.tsx"],"names":[],"mappings":"AAKA;;;GAGG;AACH,wBAAgB,SAAS,WAKd,MAAM,UAehB"}
|