one 1.25.3 → 1.25.4
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/dist/cjs/router/linkToOrphaned.test.cjs +78 -0
- package/dist/cjs/router/linkToOrphaned.test.native.js +105 -0
- package/dist/cjs/router/linkToOrphaned.test.native.js.map +1 -0
- package/dist/cjs/router/router.cjs +10 -1
- package/dist/cjs/router/router.native.js +10 -1
- package/dist/cjs/router/router.native.js.map +1 -1
- package/dist/esm/router/linkToOrphaned.test.mjs +79 -0
- package/dist/esm/router/linkToOrphaned.test.mjs.map +1 -0
- package/dist/esm/router/linkToOrphaned.test.native.js +103 -0
- package/dist/esm/router/linkToOrphaned.test.native.js.map +1 -0
- package/dist/esm/router/router.mjs +10 -1
- package/dist/esm/router/router.mjs.map +1 -1
- package/dist/esm/router/router.native.js +10 -1
- package/dist/esm/router/router.native.js.map +1 -1
- package/package.json +9 -9
- package/src/router/linkToOrphaned.test.ts +96 -0
- package/src/router/router.ts +26 -1
- package/types/layouts/Drawer.d.ts +50 -50
- package/types/layouts/Stack.d.ts +42 -42
- package/types/layouts/Tabs.d.ts +42 -42
- package/types/router/linkToOrphaned.test.d.ts +2 -0
- package/types/router/linkToOrphaned.test.d.ts.map +1 -0
- package/types/router/router.d.ts.map +1 -1
- package/types/ui/TabContext.d.ts +6 -6
- package/types/ui/TabContext.d.ts.map +1 -1
- package/types/ui/Tabs.shared.d.ts +12 -12
|
@@ -75,7 +75,7 @@ export declare function useTabsWithChildren(options: UseTabsWithChildrenOptions)
|
|
|
75
75
|
isFocused(): boolean;
|
|
76
76
|
canGoBack(): boolean;
|
|
77
77
|
getId(): string | undefined;
|
|
78
|
-
getParent<T = import("@react-navigation/
|
|
78
|
+
getParent<T = import("@react-navigation/core").NavigationHelpers<ParamListBase, {}> | undefined>(id?: string): T;
|
|
79
79
|
getState(): Readonly<{
|
|
80
80
|
key: string;
|
|
81
81
|
index: number;
|
|
@@ -85,11 +85,11 @@ export declare function useTabsWithChildren(options: UseTabsWithChildrenOptions)
|
|
|
85
85
|
type: string;
|
|
86
86
|
stale: false;
|
|
87
87
|
}>;
|
|
88
|
-
} & import("@react-navigation/
|
|
88
|
+
} & import("@react-navigation/core").PrivateValueStore<[ParamListBase, unknown, unknown]> & import("@react-navigation/core").EventEmitter<TabNavigationEventMap> & {
|
|
89
89
|
setParams(params: Partial<object | undefined>): void;
|
|
90
90
|
replaceParams(params: object | undefined): void;
|
|
91
91
|
} & TabActionHelpers<ParamListBase>;
|
|
92
|
-
describe: (route: import("@react-navigation/
|
|
92
|
+
describe: (route: import("@react-navigation/core").RouteProp<ParamListBase>, placeholder: boolean) => import("@react-navigation/core").Descriptor<import("./TabContext").ExpoTabsNavigatorScreenOptions, Omit<{
|
|
93
93
|
dispatch(action: Readonly<{
|
|
94
94
|
type: string;
|
|
95
95
|
payload?: object;
|
|
@@ -124,10 +124,10 @@ export declare function useTabsWithChildren(options: UseTabsWithChildrenOptions)
|
|
|
124
124
|
isFocused(): boolean;
|
|
125
125
|
canGoBack(): boolean;
|
|
126
126
|
getId(): string | undefined;
|
|
127
|
-
getParent<T = import("@react-navigation/
|
|
127
|
+
getParent<T = import("@react-navigation/core").NavigationHelpers<ParamListBase, {}> | undefined>(id?: string): T;
|
|
128
128
|
getState(): TabNavigationState<any>;
|
|
129
|
-
} & import("@react-navigation/
|
|
130
|
-
getParent<T = import("@react-navigation/
|
|
129
|
+
} & import("@react-navigation/core").PrivateValueStore<[ParamListBase, unknown, unknown]>, "getParent"> & {
|
|
130
|
+
getParent<T = import("@react-navigation/core").NavigationProp<ParamListBase, string, string | undefined, Readonly<{
|
|
131
131
|
key: string;
|
|
132
132
|
index: number;
|
|
133
133
|
routeNames: string[];
|
|
@@ -140,8 +140,8 @@ export declare function useTabsWithChildren(options: UseTabsWithChildrenOptions)
|
|
|
140
140
|
} & {
|
|
141
141
|
setParams(params: Partial<object | undefined>): void;
|
|
142
142
|
replaceParams(params: object | undefined): void;
|
|
143
|
-
} & import("@react-navigation/
|
|
144
|
-
descriptors: Record<string, import("@react-navigation/
|
|
143
|
+
} & import("@react-navigation/core").EventConsumer<TabNavigationEventMap & import("@react-navigation/core").EventMapCore<TabNavigationState<any>>> & import("@react-navigation/core").PrivateValueStore<[ParamListBase, string, TabNavigationEventMap]> & TabActionHelpers<ParamListBase>, import("@react-navigation/core").RouteProp<ParamListBase, string>>;
|
|
144
|
+
descriptors: Record<string, import("@react-navigation/core").Descriptor<import("./TabContext").ExpoTabsNavigatorScreenOptions, Omit<{
|
|
145
145
|
dispatch(action: Readonly<{
|
|
146
146
|
type: string;
|
|
147
147
|
payload?: object;
|
|
@@ -176,10 +176,10 @@ export declare function useTabsWithChildren(options: UseTabsWithChildrenOptions)
|
|
|
176
176
|
isFocused(): boolean;
|
|
177
177
|
canGoBack(): boolean;
|
|
178
178
|
getId(): string | undefined;
|
|
179
|
-
getParent<T = import("@react-navigation/
|
|
179
|
+
getParent<T = import("@react-navigation/core").NavigationHelpers<ParamListBase, {}> | undefined>(id?: string): T;
|
|
180
180
|
getState(): TabNavigationState<any>;
|
|
181
|
-
} & import("@react-navigation/
|
|
182
|
-
getParent<T = import("@react-navigation/
|
|
181
|
+
} & import("@react-navigation/core").PrivateValueStore<[ParamListBase, unknown, unknown]>, "getParent"> & {
|
|
182
|
+
getParent<T = import("@react-navigation/core").NavigationProp<ParamListBase, string, string | undefined, Readonly<{
|
|
183
183
|
key: string;
|
|
184
184
|
index: number;
|
|
185
185
|
routeNames: string[];
|
|
@@ -192,7 +192,7 @@ export declare function useTabsWithChildren(options: UseTabsWithChildrenOptions)
|
|
|
192
192
|
} & {
|
|
193
193
|
setParams(params: Partial<object | undefined>): void;
|
|
194
194
|
replaceParams(params: object | undefined): void;
|
|
195
|
-
} & import("@react-navigation/
|
|
195
|
+
} & import("@react-navigation/core").EventConsumer<TabNavigationEventMap & import("@react-navigation/core").EventMapCore<TabNavigationState<any>>> & import("@react-navigation/core").PrivateValueStore<[ParamListBase, string, TabNavigationEventMap]> & TabActionHelpers<ParamListBase>, import("@react-navigation/core").RouteProp<ParamListBase, string>>>;
|
|
196
196
|
NavigationContent: ({ children }: {
|
|
197
197
|
children: React.ReactNode;
|
|
198
198
|
}) => React.JSX.Element;
|