@react-navigation/native-stack 7.8.6 → 8.0.0-alpha.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/lib/module/index.js +1 -1
- package/lib/module/index.js.map +1 -1
- package/lib/module/navigators/createNativeStackNavigator.js +7 -6
- package/lib/module/navigators/createNativeStackNavigator.js.map +1 -1
- package/lib/module/views/NativeStackView.js +4 -4
- package/lib/module/views/NativeStackView.js.map +1 -1
- package/lib/module/views/NativeStackView.native.js +159 -200
- package/lib/module/views/NativeStackView.native.js.map +1 -1
- package/lib/module/views/useHeaderConfigProps.js +44 -24
- package/lib/module/views/useHeaderConfigProps.js.map +1 -1
- package/lib/typescript/src/index.d.ts +1 -1
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/lib/typescript/src/navigators/createNativeStackNavigator.d.ts +10 -6
- package/lib/typescript/src/navigators/createNativeStackNavigator.d.ts.map +1 -1
- package/lib/typescript/src/types.d.ts +72 -67
- package/lib/typescript/src/types.d.ts.map +1 -1
- package/lib/typescript/src/views/NativeStackView.d.ts.map +1 -1
- package/lib/typescript/src/views/NativeStackView.native.d.ts.map +1 -1
- package/lib/typescript/src/views/useHeaderConfigProps.d.ts +1 -1
- package/lib/typescript/src/views/useHeaderConfigProps.d.ts.map +1 -1
- package/package.json +15 -17
- package/src/index.tsx +4 -1
- package/src/navigators/createNativeStackNavigator.tsx +48 -25
- package/src/types.tsx +72 -72
- package/src/views/NativeStackView.native.tsx +191 -253
- package/src/views/NativeStackView.tsx +6 -9
- package/src/views/useHeaderConfigProps.tsx +32 -30
- package/lib/module/views/FontProcessor.js +0 -6
- package/lib/module/views/FontProcessor.js.map +0 -1
- package/lib/module/views/FontProcessor.native.js +0 -12
- package/lib/module/views/FontProcessor.native.js.map +0 -1
- package/lib/typescript/src/views/FontProcessor.d.ts +0 -2
- package/lib/typescript/src/views/FontProcessor.d.ts.map +0 -1
- package/lib/typescript/src/views/FontProcessor.native.d.ts +0 -2
- package/lib/typescript/src/views/FontProcessor.native.d.ts.map +0 -1
- package/src/views/FontProcessor.native.tsx +0 -12
- package/src/views/FontProcessor.tsx +0 -5
|
@@ -40,12 +40,12 @@ export type NativeStackNavigationEventMap = {
|
|
|
40
40
|
};
|
|
41
41
|
};
|
|
42
42
|
};
|
|
43
|
-
export type NativeStackNavigationProp<ParamList extends ParamListBase, RouteName extends keyof ParamList = string
|
|
44
|
-
export type NativeStackScreenProps<ParamList extends ParamListBase, RouteName extends keyof ParamList = string
|
|
45
|
-
navigation: NativeStackNavigationProp<ParamList, RouteName
|
|
43
|
+
export type NativeStackNavigationProp<ParamList extends ParamListBase, RouteName extends keyof ParamList = string> = NavigationProp<ParamList, RouteName, StackNavigationState<ParamList>, NativeStackNavigationOptions, NativeStackNavigationEventMap, StackActionHelpers<ParamList>>;
|
|
44
|
+
export type NativeStackScreenProps<ParamList extends ParamListBase, RouteName extends keyof ParamList = string> = {
|
|
45
|
+
navigation: NativeStackNavigationProp<ParamList, RouteName>;
|
|
46
46
|
route: RouteProp<ParamList, RouteName>;
|
|
47
47
|
};
|
|
48
|
-
export type NativeStackOptionsArgs<ParamList extends ParamListBase, RouteName extends keyof ParamList = keyof ParamList
|
|
48
|
+
export type NativeStackOptionsArgs<ParamList extends ParamListBase, RouteName extends keyof ParamList = keyof ParamList> = NativeStackScreenProps<ParamList, RouteName> & {
|
|
49
49
|
theme: Theme;
|
|
50
50
|
};
|
|
51
51
|
export type NativeStackNavigationHelpers = NavigationHelpers<ParamListBase, NativeStackNavigationEventMap>;
|
|
@@ -81,7 +81,7 @@ export type NativeStackHeaderItemProps = {
|
|
|
81
81
|
/**
|
|
82
82
|
* Tint color for the header.
|
|
83
83
|
*/
|
|
84
|
-
tintColor?:
|
|
84
|
+
tintColor?: ColorValue;
|
|
85
85
|
/**
|
|
86
86
|
* Whether it's possible to navigate back in stack.
|
|
87
87
|
*/
|
|
@@ -149,7 +149,6 @@ export type NativeStackNavigationOptions = {
|
|
|
149
149
|
}>;
|
|
150
150
|
/**
|
|
151
151
|
* Icon to display in the header as the icon in the back button.
|
|
152
|
-
*
|
|
153
152
|
* Defaults to back icon image for the platform
|
|
154
153
|
* - A chevron on iOS
|
|
155
154
|
* - An arrow on Android
|
|
@@ -166,15 +165,9 @@ export type NativeStackNavigationOptions = {
|
|
|
166
165
|
type: 'image';
|
|
167
166
|
source: ImageSourcePropType;
|
|
168
167
|
};
|
|
169
|
-
/**
|
|
170
|
-
* Image to display in the header as the icon in the back button.
|
|
171
|
-
*
|
|
172
|
-
* @deprecated Use `headerBackIcon` instead.
|
|
173
|
-
*/
|
|
174
|
-
headerBackImageSource?: ImageSourcePropType;
|
|
175
168
|
/**
|
|
176
169
|
* Style of the header when a large title is shown.
|
|
177
|
-
* The large title is shown if `
|
|
170
|
+
* The large title is shown if `headerLargeTitleEnabled` is `true` and
|
|
178
171
|
* the edge of any scrollable content reaches the matching edge of the header.
|
|
179
172
|
*
|
|
180
173
|
* Supported properties:
|
|
@@ -185,7 +178,7 @@ export type NativeStackNavigationOptions = {
|
|
|
185
178
|
* @platform ios
|
|
186
179
|
*/
|
|
187
180
|
headerLargeStyle?: StyleProp<{
|
|
188
|
-
backgroundColor?:
|
|
181
|
+
backgroundColor?: ColorValue;
|
|
189
182
|
}>;
|
|
190
183
|
/**
|
|
191
184
|
* Whether to enable header with large title which collapses to regular header on scroll.
|
|
@@ -199,12 +192,6 @@ export type NativeStackNavigationOptions = {
|
|
|
199
192
|
* @platform ios
|
|
200
193
|
*/
|
|
201
194
|
headerLargeTitleEnabled?: boolean;
|
|
202
|
-
/**
|
|
203
|
-
* Whether to enable header with large title which collapses to regular header on scroll.
|
|
204
|
-
*
|
|
205
|
-
* @deprecated Use `headerLargeTitleEnabled` instead.
|
|
206
|
-
*/
|
|
207
|
-
headerLargeTitle?: boolean;
|
|
208
195
|
/**
|
|
209
196
|
* Whether drop shadow of header is visible when a large title is shown.
|
|
210
197
|
*
|
|
@@ -228,7 +215,7 @@ export type NativeStackNavigationOptions = {
|
|
|
228
215
|
fontFamily?: string;
|
|
229
216
|
fontSize?: number;
|
|
230
217
|
fontWeight?: string;
|
|
231
|
-
color?:
|
|
218
|
+
color?: ColorValue;
|
|
232
219
|
}>;
|
|
233
220
|
/**
|
|
234
221
|
* Whether to show the header. The header is shown by default.
|
|
@@ -240,7 +227,7 @@ export type NativeStackNavigationOptions = {
|
|
|
240
227
|
* - backgroundColor
|
|
241
228
|
*/
|
|
242
229
|
headerStyle?: StyleProp<{
|
|
243
|
-
backgroundColor?:
|
|
230
|
+
backgroundColor?: ColorValue;
|
|
244
231
|
}>;
|
|
245
232
|
/**
|
|
246
233
|
* Whether to hide the elevation shadow (Android) or the bottom border (iOS) on the header.
|
|
@@ -266,7 +253,7 @@ export type NativeStackNavigationOptions = {
|
|
|
266
253
|
/**
|
|
267
254
|
* Tint color for the header. Changes the color of back button and title.
|
|
268
255
|
*/
|
|
269
|
-
headerTintColor?:
|
|
256
|
+
headerTintColor?: ColorValue;
|
|
270
257
|
/**
|
|
271
258
|
* Function which returns a React Element to render as the background of the header.
|
|
272
259
|
* This is useful for using backgrounds such as an image, a gradient, blur effect etc.
|
|
@@ -319,7 +306,7 @@ export type NativeStackNavigationOptions = {
|
|
|
319
306
|
/**
|
|
320
307
|
* Tint color for the header.
|
|
321
308
|
*/
|
|
322
|
-
tintColor?:
|
|
309
|
+
tintColor?: ColorValue;
|
|
323
310
|
}) => React.ReactNode);
|
|
324
311
|
/**
|
|
325
312
|
* How to align the the header title.
|
|
@@ -336,14 +323,16 @@ export type NativeStackNavigationOptions = {
|
|
|
336
323
|
* - color
|
|
337
324
|
*/
|
|
338
325
|
headerTitleStyle?: StyleProp<Pick<TextStyle, 'fontFamily' | 'fontSize' | 'fontWeight'> & {
|
|
339
|
-
color?:
|
|
326
|
+
color?: ColorValue;
|
|
340
327
|
}>;
|
|
341
328
|
/**
|
|
342
329
|
* Options to render a native search bar.
|
|
343
330
|
* You also need to specify `contentInsetAdjustmentBehavior="automatic"` in your `ScrollView`, `FlatList` etc.
|
|
344
331
|
* If you don't have a `ScrollView`, specify `headerTransparent: false`.
|
|
345
332
|
*/
|
|
346
|
-
headerSearchBarOptions?: SearchBarProps
|
|
333
|
+
headerSearchBarOptions?: Omit<SearchBarProps, 'onChangeText'> & {
|
|
334
|
+
onChange?: SearchBarProps['onChangeText'];
|
|
335
|
+
};
|
|
347
336
|
/**
|
|
348
337
|
* Boolean indicating whether to show the menu on longPress of iOS >= 14 back button. Defaults to `true`.
|
|
349
338
|
* Requires `react-native-screens` version >=3.3.0.
|
|
@@ -387,26 +376,6 @@ export type NativeStackNavigationOptions = {
|
|
|
387
376
|
* @platform ios
|
|
388
377
|
*/
|
|
389
378
|
keyboardHandlingEnabled?: boolean;
|
|
390
|
-
/**
|
|
391
|
-
* Sets the navigation bar color. Defaults to initial navigation bar color.
|
|
392
|
-
*
|
|
393
|
-
* @deprecated For all apps targeting Android SDK 35 or above edge-to-edge is enabled by default.
|
|
394
|
-
* This prop is subject to removal in the future.
|
|
395
|
-
* See: https://developer.android.com/about/versions/15/behavior-changes-15#ux.
|
|
396
|
-
*
|
|
397
|
-
* @platform android
|
|
398
|
-
*/
|
|
399
|
-
navigationBarColor?: string;
|
|
400
|
-
/**
|
|
401
|
-
* Boolean indicating whether the content should be visible behind the navigation bar. Defaults to `false`.
|
|
402
|
-
*
|
|
403
|
-
* @deprecated For all apps targeting Android SDK 35 or above edge-to-edge is enabled by default.
|
|
404
|
-
* This prop is subject to removal in the future.
|
|
405
|
-
* See: https://developer.android.com/about/versions/15/behavior-changes-15#ux.
|
|
406
|
-
*
|
|
407
|
-
* @platform android
|
|
408
|
-
*/
|
|
409
|
-
navigationBarTranslucent?: boolean;
|
|
410
379
|
/**
|
|
411
380
|
* Sets the visibility of the navigation bar. Defaults to `false`.
|
|
412
381
|
*
|
|
@@ -425,16 +394,6 @@ export type NativeStackNavigationOptions = {
|
|
|
425
394
|
* @platform android, ios
|
|
426
395
|
*/
|
|
427
396
|
statusBarAnimation?: ScreenProps['statusBarAnimation'];
|
|
428
|
-
/**
|
|
429
|
-
* Sets the status bar color (similar to the `StatusBar` component). Defaults to initial status bar color.
|
|
430
|
-
*
|
|
431
|
-
* @deprecated For all apps targeting Android SDK 35 or above edge-to-edge is enabled by default.
|
|
432
|
-
* This prop is subject to removal in the future.
|
|
433
|
-
* See: https://developer.android.com/about/versions/15/behavior-changes-15#ux.
|
|
434
|
-
*
|
|
435
|
-
* @platform android
|
|
436
|
-
*/
|
|
437
|
-
statusBarBackgroundColor?: string;
|
|
438
397
|
/**
|
|
439
398
|
* Whether the status bar should be hidden on this screen.
|
|
440
399
|
* Requires setting `View controller-based status bar appearance -> YES` in your Info.plist file.
|
|
@@ -456,16 +415,6 @@ export type NativeStackNavigationOptions = {
|
|
|
456
415
|
* @platform android, ios
|
|
457
416
|
*/
|
|
458
417
|
statusBarStyle?: ScreenProps['statusBarStyle'];
|
|
459
|
-
/**
|
|
460
|
-
* Sets the translucency of the status bar. Defaults to `false`.
|
|
461
|
-
*
|
|
462
|
-
* @deprecated For all apps targeting Android SDK 35 or above edge-to-edge is enabled by default.
|
|
463
|
-
* This prop is subject to removal in the future.
|
|
464
|
-
* See: https://developer.android.com/about/versions/15/behavior-changes-15#ux.
|
|
465
|
-
*
|
|
466
|
-
* @platform android
|
|
467
|
-
*/
|
|
468
|
-
statusBarTranslucent?: boolean;
|
|
469
418
|
/**
|
|
470
419
|
* Sets the direction in which you should swipe to dismiss the screen.
|
|
471
420
|
* When using `vertical` option, options `fullScreenGestureEnabled: true`, `animationMatchesGesture: true` and `animation: 'slide_from_bottom'` are set by default.
|
|
@@ -876,6 +825,10 @@ export type NativeStackHeaderItemMenuAction = {
|
|
|
876
825
|
* Label for the menu item.
|
|
877
826
|
*/
|
|
878
827
|
label: string;
|
|
828
|
+
/**
|
|
829
|
+
* The secondary text displayed alongside the label of the menu item.
|
|
830
|
+
*/
|
|
831
|
+
description?: string;
|
|
879
832
|
/**
|
|
880
833
|
* Icon for the menu item.
|
|
881
834
|
*/
|
|
@@ -937,6 +890,40 @@ export type NativeStackHeaderItemMenuSubmenu = {
|
|
|
937
890
|
* Icon for the submenu item.
|
|
938
891
|
*/
|
|
939
892
|
icon?: PlatformIconIOSSfSymbol;
|
|
893
|
+
/**
|
|
894
|
+
* Whether the menu is displayed inline with the parent menu.
|
|
895
|
+
* By default, submenus are displayed after expanding the parent menu item.
|
|
896
|
+
* Inline menus are displayed as part of the parent menu as a section.
|
|
897
|
+
*
|
|
898
|
+
* Defaults to `false`.
|
|
899
|
+
*
|
|
900
|
+
* Read more: https://developer.apple.com/documentation/uikit/uimenu/options-swift.struct/displayinline
|
|
901
|
+
*/
|
|
902
|
+
inline?: boolean;
|
|
903
|
+
/**
|
|
904
|
+
* How the submenu items are displayed.
|
|
905
|
+
* - `default`: menu items are displayed normally.
|
|
906
|
+
* - `palette`: menu items are displayed in a horizontal row.
|
|
907
|
+
*
|
|
908
|
+
* Defaults to `default`.
|
|
909
|
+
*
|
|
910
|
+
* Read more: https://developer.apple.com/documentation/uikit/uimenu/options-swift.struct/displayaspalette
|
|
911
|
+
*/
|
|
912
|
+
layout?: 'default' | 'palette';
|
|
913
|
+
/**
|
|
914
|
+
* Whether to apply destructive style to the menu item.
|
|
915
|
+
*
|
|
916
|
+
* Read more: https://developer.apple.com/documentation/uikit/uimenuelement/attributes/destructive
|
|
917
|
+
*/
|
|
918
|
+
destructive?: boolean;
|
|
919
|
+
/**
|
|
920
|
+
* Whether multiple items in the submenu can be selected, i.e. in "on" state.
|
|
921
|
+
*
|
|
922
|
+
* Defaults to `false`.
|
|
923
|
+
*
|
|
924
|
+
* Read more: https://developer.apple.com/documentation/uikit/uimenu/options-swift.struct/singleselection
|
|
925
|
+
*/
|
|
926
|
+
multiselectable?: boolean;
|
|
940
927
|
/**
|
|
941
928
|
* Array of menu items (actions or submenus).
|
|
942
929
|
*/
|
|
@@ -962,6 +949,24 @@ export type NativeStackHeaderItemMenu = SharedHeaderItem & {
|
|
|
962
949
|
* Optional title to show on top of the menu.
|
|
963
950
|
*/
|
|
964
951
|
title?: string;
|
|
952
|
+
/**
|
|
953
|
+
* Whether multiple items in the submenu can be selected, i.e. in "on" state.
|
|
954
|
+
*
|
|
955
|
+
* Defaults to `false`.
|
|
956
|
+
*
|
|
957
|
+
* Read more: https://developer.apple.com/documentation/uikit/uimenu/options-swift.struct/singleselection
|
|
958
|
+
*/
|
|
959
|
+
multiselectable?: boolean;
|
|
960
|
+
/**
|
|
961
|
+
* How the submenu items are displayed.
|
|
962
|
+
* - `default`: menu items are displayed normally.
|
|
963
|
+
* - `palette`: menu items are displayed in a horizontal row.
|
|
964
|
+
*
|
|
965
|
+
* Defaults to `default`.
|
|
966
|
+
*
|
|
967
|
+
* Read more: https://developer.apple.com/documentation/uikit/uimenu/options-swift.struct/displayaspalette
|
|
968
|
+
*/
|
|
969
|
+
layout?: 'default' | 'palette';
|
|
965
970
|
/**
|
|
966
971
|
* Array of menu items (actions or submenus).
|
|
967
972
|
*/
|
|
@@ -1004,7 +1009,7 @@ export type NativeStackHeaderItemCustom = {
|
|
|
1004
1009
|
* Items with `type: 'custom'` will not be included in this automatic collapsing behavior.
|
|
1005
1010
|
*/
|
|
1006
1011
|
export type NativeStackHeaderItem = NativeStackHeaderItemButton | NativeStackHeaderItemMenu | NativeStackHeaderItemSpacing | NativeStackHeaderItemCustom;
|
|
1007
|
-
export type NativeStackNavigatorProps = DefaultNavigatorOptions<ParamListBase,
|
|
1012
|
+
export type NativeStackNavigatorProps = DefaultNavigatorOptions<ParamListBase, StackNavigationState<ParamListBase>, NativeStackNavigationOptions, NativeStackNavigationEventMap, NativeStackNavigationProp<ParamListBase>> & StackRouterOptions & NativeStackNavigationConfig;
|
|
1008
1013
|
export type NativeStackDescriptor = Descriptor<NativeStackNavigationOptions, NativeStackNavigationProp<ParamListBase>, RouteProp<ParamListBase>>;
|
|
1009
1014
|
export type NativeStackDescriptorMap = {
|
|
1010
1015
|
[key: string]: NativeStackDescriptor;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/types.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,uBAAuB,EACvB,UAAU,EACV,iBAAiB,EACjB,cAAc,EACd,aAAa,EACb,KAAK,EACL,SAAS,EACT,kBAAkB,EAClB,oBAAoB,EACpB,kBAAkB,EAClB,KAAK,EACN,MAAM,0BAA0B,CAAC;AAClC,OAAO,KAAK,EACV,UAAU,EACV,mBAAmB,EACnB,SAAS,EACT,SAAS,EACT,SAAS,EACV,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,EACV,WAAW,EACX,4BAA4B,EAC5B,gBAAgB,EAChB,cAAc,EACf,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAEtD,MAAM,MAAM,6BAA6B,GAAG;IAC1C;;OAEG;IACH,eAAe,EAAE;QAAE,IAAI,EAAE;YAAE,OAAO,EAAE,OAAO,CAAA;SAAE,CAAA;KAAE,CAAC;IAChD;;OAEG;IACH,aAAa,EAAE;QAAE,IAAI,EAAE;YAAE,OAAO,EAAE,OAAO,CAAA;SAAE,CAAA;KAAE,CAAC;IAC9C;;OAEG;IACH,aAAa,EAAE;QAAE,IAAI,EAAE,SAAS,CAAA;KAAE,CAAC;IACnC;;;;;;;OAOG;IACH,iBAAiB,EAAE;QAAE,IAAI,EAAE;YAAE,KAAK,EAAE,MAAM,CAAC;YAAC,MAAM,EAAE,OAAO,CAAA;SAAE,CAAA;KAAE,CAAC;CACjE,CAAC;AAEF,MAAM,MAAM,yBAAyB,CACnC,SAAS,SAAS,aAAa,EAC/B,SAAS,SAAS,MAAM,SAAS,GAAG,MAAM,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/types.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,uBAAuB,EACvB,UAAU,EACV,iBAAiB,EACj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,CAAC,aAAa,CAAC,CACzB,CAAC;AAEF,MAAM,MAAM,wBAAwB,GAAG;IACrC,CAAC,GAAG,EAAE,MAAM,GAAG,qBAAqB,CAAC;CACtC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NativeStackView.d.ts","sourceRoot":"","sources":["../../../../src/views/NativeStackView.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"NativeStackView.d.ts","sourceRoot":"","sources":["../../../../src/views/NativeStackView.tsx"],"names":[],"mappings":"AAWA,OAAO,EACL,KAAK,aAAa,EAClB,KAAK,SAAS,EACd,KAAK,oBAAoB,EAE1B,MAAM,0BAA0B,CAAC;AAIlC,OAAO,KAAK,EACV,qBAAqB,EACrB,wBAAwB,EACxB,4BAA4B,EAC7B,MAAM,UAAU,CAAC;AAGlB,KAAK,KAAK,GAAG;IACX,KAAK,EAAE,oBAAoB,CAAC,aAAa,CAAC,CAAC;IAE3C,UAAU,EAAE,4BAA4B,CAAC;IACzC,WAAW,EAAE,wBAAwB,CAAC;IACtC,QAAQ,EAAE,CACR,KAAK,EAAE,SAAS,CAAC,aAAa,CAAC,EAC/B,WAAW,EAAE,OAAO,KACjB,qBAAqB,CAAC;CAC5B,CAAC;AAOF,wBAAgB,eAAe,CAAC,EAAE,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE,EAAE,KAAK,2CA4ItE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NativeStackView.native.d.ts","sourceRoot":"","sources":["../../../../src/views/NativeStackView.native.tsx"],"names":[],"mappings":"AASA,OAAO,
|
|
1
|
+
{"version":3,"file":"NativeStackView.native.d.ts","sourceRoot":"","sources":["../../../../src/views/NativeStackView.native.tsx"],"names":[],"mappings":"AASA,OAAO,EAEL,KAAK,aAAa,EAClB,KAAK,SAAS,EAEd,KAAK,oBAAoB,EAG1B,MAAM,0BAA0B,CAAC;AAgBlC,OAAO,KAAK,EACV,qBAAqB,EACrB,wBAAwB,EACxB,4BAA4B,EAC7B,MAAM,UAAU,CAAC;AAwXlB,KAAK,KAAK,GAAG;IACX,KAAK,EAAE,oBAAoB,CAAC,aAAa,CAAC,CAAC;IAC3C,UAAU,EAAE,4BAA4B,CAAC;IACzC,WAAW,EAAE,wBAAwB,CAAC;IACtC,QAAQ,EAAE,CACR,KAAK,EAAE,SAAS,CAAC,aAAa,CAAC,EAC/B,WAAW,EAAE,OAAO,KACjB,qBAAqB,CAAC;CAC5B,CAAC;AAEF,wBAAgB,eAAe,CAAC,EAC9B,KAAK,EACL,UAAU,EACV,WAAW,EACX,QAAQ,GACT,EAAE,KAAK,2CA6HP"}
|
|
@@ -10,6 +10,6 @@ type Props = NativeStackNavigationOptions & {
|
|
|
10
10
|
} | undefined;
|
|
11
11
|
route: Route<string>;
|
|
12
12
|
};
|
|
13
|
-
export declare function useHeaderConfigProps({ headerBackIcon,
|
|
13
|
+
export declare function useHeaderConfigProps({ headerBackIcon, headerBackButtonDisplayMode, headerBackButtonMenuEnabled, headerBackTitle, headerBackTitleStyle, headerBackVisible, headerShadowVisible, headerLargeStyle, headerLargeTitleEnabled, headerLargeTitleShadowVisible, headerLargeTitleStyle, headerBackground, headerLeft, headerRight, headerShown, headerStyle, headerBlurEffect, headerTintColor, headerTitle, headerTitleAlign, headerTitleStyle, headerTransparent, headerSearchBarOptions, headerTopInsetEnabled, headerBack, route, title, unstable_headerLeftItems: headerLeftItems, unstable_headerRightItems: headerRightItems, }: Props): ScreenStackHeaderConfigProps;
|
|
14
14
|
export {};
|
|
15
15
|
//# sourceMappingURL=useHeaderConfigProps.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useHeaderConfigProps.d.ts","sourceRoot":"","sources":["../../../../src/views/useHeaderConfigProps.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useHeaderConfigProps.d.ts","sourceRoot":"","sources":["../../../../src/views/useHeaderConfigProps.tsx"],"names":[],"mappings":"AAEA,OAAO,EACL,KAAK,KAAK,EAIX,MAAM,0BAA0B,CAAC;AAElC,OAAO,EAOL,KAAK,4BAA4B,EAKlC,MAAM,sBAAsB,CAAC;AAE9B,OAAO,KAAK,EAIV,4BAA4B,EAC7B,MAAM,UAAU,CAAC;AAElB,KAAK,KAAK,GAAG,4BAA4B,GAAG;IAC1C,qBAAqB,EAAE,OAAO,CAAC;IAC/B,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE;QAAE,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;QAAC,IAAI,EAAE,SAAS,CAAA;KAAE,GAAG,SAAS,CAAC;IACxE,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CACtB,CAAC;AAkIF,wBAAgB,oBAAoB,CAAC,EACnC,cAAc,EACd,2BAA2B,EAC3B,2BAA2B,EAC3B,eAAe,EACf,oBAAoB,EACpB,iBAAiB,EACjB,mBAAmB,EACnB,gBAAgB,EAChB,uBAAuB,EACvB,6BAA6B,EAC7B,qBAAqB,EACrB,gBAAgB,EAChB,UAAU,EACV,WAAW,EACX,WAAW,EACX,WAAW,EACX,gBAAgB,EAChB,eAAe,EACf,WAAW,EACX,gBAAgB,EAChB,gBAAgB,EAChB,iBAAiB,EACjB,sBAAsB,EACtB,qBAAqB,EACrB,UAAU,EACV,KAAK,EACL,KAAK,EACL,wBAAwB,EAAE,eAAe,EACzC,yBAAyB,EAAE,gBAAgB,GAC5C,EAAE,KAAK,GAAG,4BAA4B,CAwStC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-navigation/native-stack",
|
|
3
3
|
"description": "Native stack navigator using react-native-screens",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "8.0.0-alpha.0",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react-native-component",
|
|
7
7
|
"react-component",
|
|
@@ -46,31 +46,29 @@
|
|
|
46
46
|
"clean": "del lib"
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@react-navigation/elements": "^
|
|
50
|
-
"color": "^4.2.3",
|
|
49
|
+
"@react-navigation/elements": "^3.0.0-alpha.0",
|
|
51
50
|
"sf-symbols-typescript": "^2.1.0",
|
|
52
51
|
"warn-once": "^0.1.1"
|
|
53
52
|
},
|
|
54
53
|
"devDependencies": {
|
|
55
54
|
"@jest/globals": "^30.0.0",
|
|
56
|
-
"@react-navigation/native": "^
|
|
57
|
-
"@testing-library/react-native": "^13.2.
|
|
58
|
-
"@types/
|
|
59
|
-
"@types/react": "~19.0.10",
|
|
55
|
+
"@react-navigation/native": "^8.0.0-alpha.0",
|
|
56
|
+
"@testing-library/react-native": "^13.2.1",
|
|
57
|
+
"@types/react": "~19.1.10",
|
|
60
58
|
"del-cli": "^6.0.0",
|
|
61
|
-
"react": "19.
|
|
62
|
-
"react-native": "0.
|
|
59
|
+
"react": "19.1.0",
|
|
60
|
+
"react-native": "0.81.4",
|
|
63
61
|
"react-native-builder-bob": "^0.40.12",
|
|
64
|
-
"react-native-screens": "^4.
|
|
65
|
-
"react-test-renderer": "19.
|
|
66
|
-
"typescript": "^5.
|
|
62
|
+
"react-native-screens": "^4.19.0",
|
|
63
|
+
"react-test-renderer": "19.1.0",
|
|
64
|
+
"typescript": "^5.9.2"
|
|
67
65
|
},
|
|
68
66
|
"peerDependencies": {
|
|
69
|
-
"@react-navigation/native": "^
|
|
70
|
-
"react": ">=
|
|
67
|
+
"@react-navigation/native": "^8.0.0-alpha.0",
|
|
68
|
+
"react": ">= 19.0.0",
|
|
71
69
|
"react-native": "*",
|
|
72
|
-
"react-native-safe-area-context": ">=
|
|
73
|
-
"react-native-screens": ">= 4.
|
|
70
|
+
"react-native-safe-area-context": ">= 5.5.0",
|
|
71
|
+
"react-native-screens": ">= 4.19.0"
|
|
74
72
|
},
|
|
75
73
|
"react-native-builder-bob": {
|
|
76
74
|
"source": "src",
|
|
@@ -90,5 +88,5 @@
|
|
|
90
88
|
]
|
|
91
89
|
]
|
|
92
90
|
},
|
|
93
|
-
"gitHead": "
|
|
91
|
+
"gitHead": "46daae524ec6a59737147ed506222dd09a5b6e39"
|
|
94
92
|
}
|
package/src/index.tsx
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createNavigatorFactory,
|
|
3
3
|
type EventArg,
|
|
4
|
-
type NavigatorTypeBagBase,
|
|
5
4
|
type ParamListBase,
|
|
6
5
|
type StackActionHelpers,
|
|
7
6
|
StackActions,
|
|
@@ -9,6 +8,10 @@ import {
|
|
|
9
8
|
StackRouter,
|
|
10
9
|
type StackRouterOptions,
|
|
11
10
|
type StaticConfig,
|
|
11
|
+
type StaticParamList,
|
|
12
|
+
type StaticScreenConfig,
|
|
13
|
+
type StaticScreenConfigLinking,
|
|
14
|
+
type StaticScreenConfigScreen,
|
|
12
15
|
type TypedNavigator,
|
|
13
16
|
useNavigationBuilder,
|
|
14
17
|
} from '@react-navigation/native';
|
|
@@ -23,15 +26,14 @@ import type {
|
|
|
23
26
|
import { NativeStackView } from '../views/NativeStackView';
|
|
24
27
|
|
|
25
28
|
function NativeStackNavigator({
|
|
26
|
-
id,
|
|
27
29
|
initialRouteName,
|
|
28
|
-
|
|
30
|
+
routeNamesChangeBehavior,
|
|
29
31
|
children,
|
|
30
32
|
layout,
|
|
31
33
|
screenListeners,
|
|
32
34
|
screenOptions,
|
|
33
35
|
screenLayout,
|
|
34
|
-
|
|
36
|
+
router,
|
|
35
37
|
...rest
|
|
36
38
|
}: NativeStackNavigatorProps) {
|
|
37
39
|
const { state, describe, descriptors, navigation, NavigationContent } =
|
|
@@ -42,15 +44,14 @@ function NativeStackNavigator({
|
|
|
42
44
|
NativeStackNavigationOptions,
|
|
43
45
|
NativeStackNavigationEventMap
|
|
44
46
|
>(StackRouter, {
|
|
45
|
-
id,
|
|
46
47
|
initialRouteName,
|
|
47
|
-
|
|
48
|
+
routeNamesChangeBehavior,
|
|
48
49
|
children,
|
|
49
50
|
layout,
|
|
50
51
|
screenListeners,
|
|
51
52
|
screenOptions,
|
|
52
53
|
screenLayout,
|
|
53
|
-
|
|
54
|
+
router,
|
|
54
55
|
});
|
|
55
56
|
|
|
56
57
|
React.useEffect(
|
|
@@ -92,25 +93,47 @@ function NativeStackNavigator({
|
|
|
92
93
|
);
|
|
93
94
|
}
|
|
94
95
|
|
|
96
|
+
type NativeStackTypeBag<ParamList extends {}> = {
|
|
97
|
+
ParamList: ParamList;
|
|
98
|
+
State: StackNavigationState<ParamList>;
|
|
99
|
+
ScreenOptions: NativeStackNavigationOptions;
|
|
100
|
+
EventMap: NativeStackNavigationEventMap;
|
|
101
|
+
NavigationList: {
|
|
102
|
+
[RouteName in keyof ParamList]: NativeStackNavigationProp<
|
|
103
|
+
ParamList,
|
|
104
|
+
RouteName
|
|
105
|
+
>;
|
|
106
|
+
};
|
|
107
|
+
Navigator: typeof NativeStackNavigator;
|
|
108
|
+
};
|
|
109
|
+
|
|
95
110
|
export function createNativeStackNavigator<
|
|
96
111
|
const ParamList extends ParamListBase,
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
RouteName,
|
|
108
|
-
NavigatorID
|
|
109
|
-
>;
|
|
110
|
-
};
|
|
111
|
-
Navigator: typeof NativeStackNavigator;
|
|
112
|
-
},
|
|
113
|
-
const Config extends StaticConfig<TypeBag> = StaticConfig<TypeBag>,
|
|
114
|
-
>(config?: Config): TypedNavigator<TypeBag, Config> {
|
|
112
|
+
>(): TypedNavigator<NativeStackTypeBag<ParamList>, undefined>;
|
|
113
|
+
export function createNativeStackNavigator<
|
|
114
|
+
const Config extends StaticConfig<NativeStackTypeBag<ParamListBase>>,
|
|
115
|
+
>(
|
|
116
|
+
config: Config
|
|
117
|
+
): TypedNavigator<
|
|
118
|
+
NativeStackTypeBag<StaticParamList<{ config: Config }>>,
|
|
119
|
+
Config
|
|
120
|
+
>;
|
|
121
|
+
export function createNativeStackNavigator(config?: unknown) {
|
|
115
122
|
return createNavigatorFactory(NativeStackNavigator)(config);
|
|
116
123
|
}
|
|
124
|
+
|
|
125
|
+
export function createNativeStackScreen<
|
|
126
|
+
const Linking extends StaticScreenConfigLinking,
|
|
127
|
+
const Screen extends StaticScreenConfigScreen,
|
|
128
|
+
>(
|
|
129
|
+
config: StaticScreenConfig<
|
|
130
|
+
Linking,
|
|
131
|
+
Screen,
|
|
132
|
+
StackNavigationState<ParamListBase>,
|
|
133
|
+
NativeStackNavigationOptions,
|
|
134
|
+
NativeStackNavigationEventMap,
|
|
135
|
+
NativeStackNavigationProp<ParamListBase>
|
|
136
|
+
>
|
|
137
|
+
) {
|
|
138
|
+
return config;
|
|
139
|
+
}
|