@react-navigation/native-stack 8.0.0-alpha.12 → 8.0.0-alpha.14
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/views/NativeStackView.js +16 -4
- package/lib/module/views/NativeStackView.js.map +1 -1
- package/lib/module/views/NativeStackView.native.js +59 -56
- package/lib/module/views/NativeStackView.native.js.map +1 -1
- package/lib/module/views/useHeaderConfigProps.js +26 -11
- package/lib/module/views/useHeaderConfigProps.js.map +1 -1
- package/lib/typescript/src/types.d.ts +133 -130
- 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.map +1 -1
- package/package.json +11 -11
- package/src/types.tsx +197 -161
- package/src/views/NativeStackView.native.tsx +95 -77
- package/src/views/NativeStackView.tsx +30 -9
- package/src/views/useHeaderConfigProps.tsx +40 -19
|
@@ -65,7 +65,7 @@ export type NativeStackHeaderProps = {
|
|
|
65
65
|
* The `href` to use for the anchor tag on web
|
|
66
66
|
*/
|
|
67
67
|
href: string | undefined;
|
|
68
|
-
};
|
|
68
|
+
} | undefined;
|
|
69
69
|
/**
|
|
70
70
|
* Options for the current screen.
|
|
71
71
|
*/
|
|
@@ -83,22 +83,22 @@ export type NativeStackHeaderItemProps = {
|
|
|
83
83
|
/**
|
|
84
84
|
* Tint color for the header.
|
|
85
85
|
*/
|
|
86
|
-
tintColor?: ColorValue;
|
|
86
|
+
tintColor?: ColorValue | undefined;
|
|
87
87
|
/**
|
|
88
88
|
* Whether it's possible to navigate back in stack.
|
|
89
89
|
*/
|
|
90
|
-
canGoBack?: boolean;
|
|
90
|
+
canGoBack?: boolean | undefined;
|
|
91
91
|
};
|
|
92
92
|
export type NativeStackHeaderBackProps = NativeStackHeaderItemProps & {
|
|
93
93
|
/**
|
|
94
94
|
* Label text for the button. Usually the title of the previous screen.
|
|
95
95
|
* By default, this is only shown on iOS 18.
|
|
96
96
|
*/
|
|
97
|
-
label?: string;
|
|
97
|
+
label?: string | undefined;
|
|
98
98
|
/**
|
|
99
99
|
* The `href` to use for the anchor tag on web
|
|
100
100
|
*/
|
|
101
|
-
href?: string;
|
|
101
|
+
href?: string | undefined;
|
|
102
102
|
};
|
|
103
103
|
/**
|
|
104
104
|
* @deprecated Use `NativeStackHeaderBackProps` instead.
|
|
@@ -112,18 +112,18 @@ export type NativeStackNavigationOptions = {
|
|
|
112
112
|
/**
|
|
113
113
|
* String that can be displayed in the header as a fallback for `headerTitle`.
|
|
114
114
|
*/
|
|
115
|
-
title?: string;
|
|
115
|
+
title?: string | undefined;
|
|
116
116
|
/**
|
|
117
117
|
* Function that given `HeaderProps` returns a React Element to display as a header.
|
|
118
118
|
*/
|
|
119
|
-
header?: (props: NativeStackHeaderProps) => React.ReactNode;
|
|
119
|
+
header?: ((props: NativeStackHeaderProps) => React.ReactNode) | undefined;
|
|
120
120
|
/**
|
|
121
121
|
* Whether the back button is visible in the header.
|
|
122
122
|
* You can use it to show a back button alongside `headerLeft` if you have specified it.
|
|
123
123
|
*
|
|
124
124
|
* This will have no effect on the first screen in the stack.
|
|
125
125
|
*/
|
|
126
|
-
headerBackVisible?: boolean;
|
|
126
|
+
headerBackVisible?: boolean | undefined;
|
|
127
127
|
/**
|
|
128
128
|
* Title string used by the back button on iOS.
|
|
129
129
|
* Defaults to the previous scene's title.
|
|
@@ -135,7 +135,7 @@ export type NativeStackNavigationOptions = {
|
|
|
135
135
|
*
|
|
136
136
|
* @platform ios, web
|
|
137
137
|
*/
|
|
138
|
-
headerBackTitle?: string;
|
|
138
|
+
headerBackTitle?: string | undefined;
|
|
139
139
|
/**
|
|
140
140
|
* Style object for header back title. Supported properties:
|
|
141
141
|
* - fontFamily
|
|
@@ -146,9 +146,9 @@ export type NativeStackNavigationOptions = {
|
|
|
146
146
|
* @platform ios, web
|
|
147
147
|
*/
|
|
148
148
|
headerBackTitleStyle?: StyleProp<{
|
|
149
|
-
fontFamily?: string;
|
|
150
|
-
fontSize?: number;
|
|
151
|
-
}
|
|
149
|
+
fontFamily?: string | undefined;
|
|
150
|
+
fontSize?: number | undefined;
|
|
151
|
+
}> | undefined;
|
|
152
152
|
/**
|
|
153
153
|
* Icon to display in the header in the back button.
|
|
154
154
|
*
|
|
@@ -169,7 +169,7 @@ export type NativeStackNavigationOptions = {
|
|
|
169
169
|
* }
|
|
170
170
|
* ```
|
|
171
171
|
*/
|
|
172
|
-
headerBackIcon?: HeaderIcon;
|
|
172
|
+
headerBackIcon?: HeaderIcon | undefined;
|
|
173
173
|
/**
|
|
174
174
|
* Style of the header when a large title is shown.
|
|
175
175
|
* The large title is shown if `headerLargeTitleEnabled` is `true` and
|
|
@@ -183,8 +183,8 @@ export type NativeStackNavigationOptions = {
|
|
|
183
183
|
* @platform ios
|
|
184
184
|
*/
|
|
185
185
|
headerLargeStyle?: StyleProp<{
|
|
186
|
-
backgroundColor?: ColorValue;
|
|
187
|
-
}
|
|
186
|
+
backgroundColor?: ColorValue | undefined;
|
|
187
|
+
}> | undefined;
|
|
188
188
|
/**
|
|
189
189
|
* Whether to enable header with large title which collapses to regular header on scroll.
|
|
190
190
|
*
|
|
@@ -196,7 +196,7 @@ export type NativeStackNavigationOptions = {
|
|
|
196
196
|
*
|
|
197
197
|
* @platform ios
|
|
198
198
|
*/
|
|
199
|
-
headerLargeTitleEnabled?: boolean;
|
|
199
|
+
headerLargeTitleEnabled?: boolean | undefined;
|
|
200
200
|
/**
|
|
201
201
|
* Whether drop shadow of header is visible when a large title is shown.
|
|
202
202
|
*
|
|
@@ -204,7 +204,7 @@ export type NativeStackNavigationOptions = {
|
|
|
204
204
|
*
|
|
205
205
|
* @platform ios
|
|
206
206
|
*/
|
|
207
|
-
headerLargeTitleShadowVisible?: boolean;
|
|
207
|
+
headerLargeTitleShadowVisible?: boolean | undefined;
|
|
208
208
|
/**
|
|
209
209
|
* Style object for large title in header. Supported properties:
|
|
210
210
|
* - fontFamily
|
|
@@ -217,33 +217,33 @@ export type NativeStackNavigationOptions = {
|
|
|
217
217
|
* @platform ios
|
|
218
218
|
*/
|
|
219
219
|
headerLargeTitleStyle?: StyleProp<{
|
|
220
|
-
fontFamily?: string;
|
|
221
|
-
fontSize?: number;
|
|
222
|
-
fontWeight?: string;
|
|
223
|
-
color?: ColorValue;
|
|
224
|
-
}
|
|
220
|
+
fontFamily?: string | undefined;
|
|
221
|
+
fontSize?: number | undefined;
|
|
222
|
+
fontWeight?: string | undefined;
|
|
223
|
+
color?: ColorValue | undefined;
|
|
224
|
+
}> | undefined;
|
|
225
225
|
/**
|
|
226
226
|
* Whether to show the header. The header is shown by default.
|
|
227
227
|
* Setting this to `false` hides the header.
|
|
228
228
|
*/
|
|
229
|
-
headerShown?: boolean;
|
|
229
|
+
headerShown?: boolean | undefined;
|
|
230
230
|
/**
|
|
231
231
|
* Style object for header. Supported properties:
|
|
232
232
|
* - backgroundColor
|
|
233
233
|
*/
|
|
234
234
|
headerStyle?: StyleProp<{
|
|
235
|
-
backgroundColor?: ColorValue;
|
|
236
|
-
}
|
|
235
|
+
backgroundColor?: ColorValue | undefined;
|
|
236
|
+
}> | undefined;
|
|
237
237
|
/**
|
|
238
238
|
* Whether to hide the elevation shadow (Android) or the bottom border (iOS) on the header.
|
|
239
239
|
*/
|
|
240
|
-
headerShadowVisible?: boolean;
|
|
240
|
+
headerShadowVisible?: boolean | undefined;
|
|
241
241
|
/**
|
|
242
242
|
* Boolean indicating whether the navigation bar is translucent.
|
|
243
243
|
* Setting this to `true` makes the header absolutely positioned,
|
|
244
244
|
* and changes the background color to `transparent` unless specified in `headerStyle`.
|
|
245
245
|
*/
|
|
246
|
-
headerTransparent?: boolean;
|
|
246
|
+
headerTransparent?: boolean | undefined;
|
|
247
247
|
/**
|
|
248
248
|
* Blur effect for the translucent header.
|
|
249
249
|
* The `headerTransparent` option needs to be set to `true` for this to work.
|
|
@@ -254,23 +254,23 @@ export type NativeStackNavigationOptions = {
|
|
|
254
254
|
*
|
|
255
255
|
* @platform ios
|
|
256
256
|
*/
|
|
257
|
-
headerBlurEffect?: ScreenStackHeaderConfigProps['blurEffect'];
|
|
257
|
+
headerBlurEffect?: ScreenStackHeaderConfigProps['blurEffect'] | undefined;
|
|
258
258
|
/**
|
|
259
259
|
* Tint color for the header. Changes the color of back button and title.
|
|
260
260
|
*/
|
|
261
|
-
headerTintColor?: ColorValue;
|
|
261
|
+
headerTintColor?: ColorValue | undefined;
|
|
262
262
|
/**
|
|
263
263
|
* Function which returns a React Element to render as the background of the header.
|
|
264
264
|
* This is useful for using backgrounds such as an image, a gradient, blur effect etc.
|
|
265
265
|
* You can use this with `headerTransparent` to render content underneath a translucent header.
|
|
266
266
|
*/
|
|
267
|
-
headerBackground?: () => React.ReactNode;
|
|
267
|
+
headerBackground?: (() => React.ReactNode) | undefined;
|
|
268
268
|
/**
|
|
269
269
|
* Function which returns a React Element to display on the left side of the header.
|
|
270
270
|
* This replaces the back button. See `headerBackVisible` to show the back button along side left element.
|
|
271
271
|
* Will be overriden by `headerLeftItems` on iOS.
|
|
272
272
|
*/
|
|
273
|
-
headerLeft?: (props: NativeStackHeaderBackProps) => React.ReactNode;
|
|
273
|
+
headerLeft?: ((props: NativeStackHeaderBackProps) => React.ReactNode) | undefined;
|
|
274
274
|
/**
|
|
275
275
|
* Whether the liquid glass background is visible for the item.
|
|
276
276
|
*
|
|
@@ -279,12 +279,12 @@ export type NativeStackNavigationOptions = {
|
|
|
279
279
|
*
|
|
280
280
|
* Defaults to `true`.
|
|
281
281
|
*/
|
|
282
|
-
headerLeftBackgroundVisible?: boolean;
|
|
282
|
+
headerLeftBackgroundVisible?: boolean | undefined;
|
|
283
283
|
/**
|
|
284
284
|
* Function which returns a React Element to display on the right side of the header.
|
|
285
285
|
* Will be overriden by `headerRightItems` on iOS.
|
|
286
286
|
*/
|
|
287
|
-
headerRight?: (props: NativeStackHeaderItemProps) => React.ReactNode;
|
|
287
|
+
headerRight?: ((props: NativeStackHeaderItemProps) => React.ReactNode) | undefined;
|
|
288
288
|
/**
|
|
289
289
|
* Whether the liquid glass background is visible for the item.
|
|
290
290
|
*
|
|
@@ -293,7 +293,7 @@ export type NativeStackNavigationOptions = {
|
|
|
293
293
|
*
|
|
294
294
|
* Defaults to `true`.
|
|
295
295
|
*/
|
|
296
|
-
headerRightBackgroundVisible?: boolean;
|
|
296
|
+
headerRightBackgroundVisible?: boolean | undefined;
|
|
297
297
|
/**
|
|
298
298
|
* Function which returns an array of items to display as on the left side of the header.
|
|
299
299
|
* Overrides `headerLeft`.
|
|
@@ -302,7 +302,7 @@ export type NativeStackNavigationOptions = {
|
|
|
302
302
|
*
|
|
303
303
|
* @platform ios
|
|
304
304
|
*/
|
|
305
|
-
unstable_headerLeftItems?: (props: NativeStackHeaderItemProps) => NativeStackHeaderItem[];
|
|
305
|
+
unstable_headerLeftItems?: ((props: NativeStackHeaderItemProps) => NativeStackHeaderItem[]) | undefined;
|
|
306
306
|
/**
|
|
307
307
|
* Function which returns an array of items to display as on the right side of the header.
|
|
308
308
|
* Overrides `headerRight`.
|
|
@@ -311,7 +311,7 @@ export type NativeStackNavigationOptions = {
|
|
|
311
311
|
*
|
|
312
312
|
* @platform ios
|
|
313
313
|
*/
|
|
314
|
-
unstable_headerRightItems?: (props: NativeStackHeaderItemProps) => NativeStackHeaderItem[];
|
|
314
|
+
unstable_headerRightItems?: ((props: NativeStackHeaderItemProps) => NativeStackHeaderItem[]) | undefined;
|
|
315
315
|
/**
|
|
316
316
|
* String or a function that returns a React Element to be used by the header.
|
|
317
317
|
* Defaults to screen `title` or route name.
|
|
@@ -329,15 +329,15 @@ export type NativeStackNavigationOptions = {
|
|
|
329
329
|
/**
|
|
330
330
|
* Tint color for the header.
|
|
331
331
|
*/
|
|
332
|
-
tintColor?: ColorValue;
|
|
333
|
-
}) => React.ReactNode);
|
|
332
|
+
tintColor?: ColorValue | undefined;
|
|
333
|
+
}) => React.ReactNode) | undefined;
|
|
334
334
|
/**
|
|
335
335
|
* How to align the the header title.
|
|
336
336
|
* Defaults to `left` on platforms other than iOS.
|
|
337
337
|
*
|
|
338
338
|
* Not supported on iOS. It's always `center` on iOS and cannot be changed.
|
|
339
339
|
*/
|
|
340
|
-
headerTitleAlign?: 'left' | 'center';
|
|
340
|
+
headerTitleAlign?: 'left' | 'center' | undefined;
|
|
341
341
|
/**
|
|
342
342
|
* Style object for header title. Supported properties:
|
|
343
343
|
* - fontFamily
|
|
@@ -346,16 +346,16 @@ export type NativeStackNavigationOptions = {
|
|
|
346
346
|
* - color
|
|
347
347
|
*/
|
|
348
348
|
headerTitleStyle?: StyleProp<Pick<TextStyle, 'fontFamily' | 'fontSize' | 'fontWeight'> & {
|
|
349
|
-
color?: ColorValue;
|
|
350
|
-
}
|
|
349
|
+
color?: ColorValue | undefined;
|
|
350
|
+
}> | undefined;
|
|
351
351
|
/**
|
|
352
352
|
* Options to render a native search bar.
|
|
353
353
|
* You also need to specify `contentInsetAdjustmentBehavior="automatic"` in your `ScrollView`, `FlatList` etc.
|
|
354
354
|
* If you don't have a `ScrollView`, specify `headerTransparent: false`.
|
|
355
355
|
*/
|
|
356
|
-
headerSearchBarOptions?: Omit<SearchBarProps, 'onChangeText'> & {
|
|
357
|
-
onChange?: SearchBarProps['onChangeText'];
|
|
358
|
-
};
|
|
356
|
+
headerSearchBarOptions?: (Omit<SearchBarProps, 'onChangeText'> & {
|
|
357
|
+
onChange?: SearchBarProps['onChangeText'] | undefined;
|
|
358
|
+
}) | undefined;
|
|
359
359
|
/**
|
|
360
360
|
* Boolean indicating whether to show the menu on longPress of iOS >= 14 back button. Defaults to `true`.
|
|
361
361
|
* Requires `react-native-screens` version >=3.3.0.
|
|
@@ -364,7 +364,7 @@ export type NativeStackNavigationOptions = {
|
|
|
364
364
|
*
|
|
365
365
|
* @platform ios
|
|
366
366
|
*/
|
|
367
|
-
headerBackButtonMenuEnabled?: boolean;
|
|
367
|
+
headerBackButtonMenuEnabled?: boolean | undefined;
|
|
368
368
|
/**
|
|
369
369
|
* How the back button displays icon and title.
|
|
370
370
|
*
|
|
@@ -386,25 +386,25 @@ export type NativeStackNavigationOptions = {
|
|
|
386
386
|
*
|
|
387
387
|
* @platform ios, web
|
|
388
388
|
*/
|
|
389
|
-
headerBackButtonDisplayMode?: ScreenStackHeaderConfigProps['backButtonDisplayMode'];
|
|
389
|
+
headerBackButtonDisplayMode?: ScreenStackHeaderConfigProps['backButtonDisplayMode'] | undefined;
|
|
390
390
|
/**
|
|
391
391
|
* Whether the home indicator should prefer to stay hidden on this screen. Defaults to `false`.
|
|
392
392
|
*
|
|
393
393
|
* @platform ios
|
|
394
394
|
*/
|
|
395
|
-
autoHideHomeIndicator?: boolean;
|
|
395
|
+
autoHideHomeIndicator?: boolean | undefined;
|
|
396
396
|
/**
|
|
397
397
|
* Whether the keyboard should hide when swiping to the previous screen. Defaults to `false`.
|
|
398
398
|
*
|
|
399
399
|
* @platform ios
|
|
400
400
|
*/
|
|
401
|
-
keyboardHandlingEnabled?: boolean;
|
|
401
|
+
keyboardHandlingEnabled?: boolean | undefined;
|
|
402
402
|
/**
|
|
403
403
|
* Sets the visibility of the navigation bar. Defaults to `false`.
|
|
404
404
|
*
|
|
405
405
|
* @platform android
|
|
406
406
|
*/
|
|
407
|
-
navigationBarHidden?: boolean;
|
|
407
|
+
navigationBarHidden?: boolean | undefined;
|
|
408
408
|
/**
|
|
409
409
|
* Sets the status bar animation (similar to the `StatusBar` component).
|
|
410
410
|
* On Android, setting either `fade` or `slide` will set the transition of status bar color. On iOS, this option applies to appereance animation of the status bar.
|
|
@@ -416,7 +416,7 @@ export type NativeStackNavigationOptions = {
|
|
|
416
416
|
*
|
|
417
417
|
* @platform android, ios
|
|
418
418
|
*/
|
|
419
|
-
statusBarAnimation?: ScreenProps['statusBarAnimation'];
|
|
419
|
+
statusBarAnimation?: ScreenProps['statusBarAnimation'] | undefined;
|
|
420
420
|
/**
|
|
421
421
|
* Whether the status bar should be hidden on this screen.
|
|
422
422
|
* Requires setting `View controller-based status bar appearance -> YES` in your Info.plist file.
|
|
@@ -425,7 +425,7 @@ export type NativeStackNavigationOptions = {
|
|
|
425
425
|
*
|
|
426
426
|
* @platform android, ios
|
|
427
427
|
*/
|
|
428
|
-
statusBarHidden?: boolean;
|
|
428
|
+
statusBarHidden?: boolean | undefined;
|
|
429
429
|
/**
|
|
430
430
|
* Sets the status bar color (similar to the `StatusBar` component).
|
|
431
431
|
* Requires setting `View controller-based status bar appearance -> YES` (or removing the config) in your `Info.plist` file.
|
|
@@ -437,7 +437,7 @@ export type NativeStackNavigationOptions = {
|
|
|
437
437
|
*
|
|
438
438
|
* @platform android, ios
|
|
439
439
|
*/
|
|
440
|
-
statusBarStyle?: ScreenProps['statusBarStyle'];
|
|
440
|
+
statusBarStyle?: ScreenProps['statusBarStyle'] | undefined;
|
|
441
441
|
/**
|
|
442
442
|
* Sets the direction in which you should swipe to dismiss the screen.
|
|
443
443
|
* When using `vertical` option, options `fullScreenGestureEnabled: true`, `animationMatchesGesture: true` and `animation: 'slide_from_bottom'` are set by default.
|
|
@@ -448,11 +448,11 @@ export type NativeStackNavigationOptions = {
|
|
|
448
448
|
*
|
|
449
449
|
* @platform ios
|
|
450
450
|
*/
|
|
451
|
-
gestureDirection?: ScreenProps['swipeDirection'];
|
|
451
|
+
gestureDirection?: ScreenProps['swipeDirection'] | undefined;
|
|
452
452
|
/**
|
|
453
453
|
* Style object for the scene content.
|
|
454
454
|
*/
|
|
455
|
-
contentStyle?: StyleProp<ViewStyle
|
|
455
|
+
contentStyle?: StyleProp<ViewStyle> | undefined;
|
|
456
456
|
/**
|
|
457
457
|
* Whether the gesture to dismiss should use animation provided to `animation` prop. Defaults to `false`.
|
|
458
458
|
*
|
|
@@ -460,7 +460,7 @@ export type NativeStackNavigationOptions = {
|
|
|
460
460
|
*
|
|
461
461
|
* @platform ios
|
|
462
462
|
*/
|
|
463
|
-
animationMatchesGesture?: boolean;
|
|
463
|
+
animationMatchesGesture?: boolean | undefined;
|
|
464
464
|
/**
|
|
465
465
|
* Whether the gesture to dismiss should work on the whole screen. The behavior depends on iOS version.
|
|
466
466
|
*
|
|
@@ -475,7 +475,7 @@ export type NativeStackNavigationOptions = {
|
|
|
475
475
|
*
|
|
476
476
|
* @platform ios
|
|
477
477
|
*/
|
|
478
|
-
fullScreenGestureEnabled?: boolean;
|
|
478
|
+
fullScreenGestureEnabled?: boolean | undefined;
|
|
479
479
|
/**
|
|
480
480
|
* iOS 18 and below. Controls whether the full screen dismiss gesture has shadow under view during transition.
|
|
481
481
|
* The gesture uses custom transition and thus doesn't have a shadow by default. When enabled, a custom shadow view
|
|
@@ -487,7 +487,7 @@ export type NativeStackNavigationOptions = {
|
|
|
487
487
|
*
|
|
488
488
|
* @platform ios
|
|
489
489
|
*/
|
|
490
|
-
fullScreenGestureShadowEnabled?: boolean;
|
|
490
|
+
fullScreenGestureShadowEnabled?: boolean | undefined;
|
|
491
491
|
/**
|
|
492
492
|
* Whether you can use gestures to dismiss this screen. Defaults to `true`.
|
|
493
493
|
*
|
|
@@ -495,13 +495,13 @@ export type NativeStackNavigationOptions = {
|
|
|
495
495
|
*
|
|
496
496
|
* @platform ios
|
|
497
497
|
*/
|
|
498
|
-
gestureEnabled?: boolean;
|
|
498
|
+
gestureEnabled?: boolean | undefined;
|
|
499
499
|
/**
|
|
500
500
|
* Use it to restrict the distance from the edges of screen in which the gesture should be recognized. To be used alongside `fullScreenGestureEnabled`.
|
|
501
501
|
*
|
|
502
502
|
* @platform ios
|
|
503
503
|
*/
|
|
504
|
-
gestureResponseDistance?: ScreenProps['gestureResponseDistance'];
|
|
504
|
+
gestureResponseDistance?: ScreenProps['gestureResponseDistance'] | undefined;
|
|
505
505
|
/**
|
|
506
506
|
* The type of animation to use when this screen replaces another screen. Defaults to `pop`.
|
|
507
507
|
*
|
|
@@ -511,7 +511,7 @@ export type NativeStackNavigationOptions = {
|
|
|
511
511
|
*
|
|
512
512
|
* Only supported on iOS and Android.
|
|
513
513
|
*/
|
|
514
|
-
animationTypeForReplace?: ScreenProps['replaceAnimation'];
|
|
514
|
+
animationTypeForReplace?: ScreenProps['replaceAnimation'] | undefined;
|
|
515
515
|
/**
|
|
516
516
|
* How the screen should animate when pushed or popped.
|
|
517
517
|
*
|
|
@@ -530,7 +530,7 @@ export type NativeStackNavigationOptions = {
|
|
|
530
530
|
*
|
|
531
531
|
* Only supported on iOS and Android.
|
|
532
532
|
*/
|
|
533
|
-
animation?: ScreenProps['stackAnimation'];
|
|
533
|
+
animation?: ScreenProps['stackAnimation'] | undefined;
|
|
534
534
|
/**
|
|
535
535
|
* Duration (in milliseconds) for the following transition animations on iOS:
|
|
536
536
|
* - `slide_from_bottom`
|
|
@@ -546,7 +546,7 @@ export type NativeStackNavigationOptions = {
|
|
|
546
546
|
*
|
|
547
547
|
* @platform ios
|
|
548
548
|
*/
|
|
549
|
-
animationDuration?: number;
|
|
549
|
+
animationDuration?: number | undefined;
|
|
550
550
|
/**
|
|
551
551
|
* How should the screen be presented.
|
|
552
552
|
*
|
|
@@ -562,7 +562,7 @@ export type NativeStackNavigationOptions = {
|
|
|
562
562
|
*
|
|
563
563
|
* Only supported on iOS and Android.
|
|
564
564
|
*/
|
|
565
|
-
presentation?: Exclude<ScreenProps['stackPresentation'], 'push'> | 'card';
|
|
565
|
+
presentation?: Exclude<ScreenProps['stackPresentation'], 'push'> | 'card' | undefined;
|
|
566
566
|
/**
|
|
567
567
|
* Describes heights where a sheet can rest.
|
|
568
568
|
* Works only when `presentation` is set to `formSheet`.
|
|
@@ -581,7 +581,7 @@ export type NativeStackNavigationOptions = {
|
|
|
581
581
|
*
|
|
582
582
|
* Defaults to `[1.0]`.
|
|
583
583
|
*/
|
|
584
|
-
sheetAllowedDetents?: number[] | 'fitToContents';
|
|
584
|
+
sheetAllowedDetents?: number[] | 'fitToContents' | undefined;
|
|
585
585
|
/**
|
|
586
586
|
* Integer value describing elevation of the sheet, impacting shadow on the top edge of the sheet.
|
|
587
587
|
*
|
|
@@ -591,7 +591,7 @@ export type NativeStackNavigationOptions = {
|
|
|
591
591
|
*
|
|
592
592
|
* @platform Android
|
|
593
593
|
*/
|
|
594
|
-
sheetElevation?: number;
|
|
594
|
+
sheetElevation?: number | undefined;
|
|
595
595
|
/**
|
|
596
596
|
* Whether the sheet should expand to larger detent when scrolling.
|
|
597
597
|
* Works only when `presentation` is set to `formSheet`.
|
|
@@ -599,7 +599,7 @@ export type NativeStackNavigationOptions = {
|
|
|
599
599
|
*
|
|
600
600
|
* @platform ios
|
|
601
601
|
*/
|
|
602
|
-
sheetExpandsWhenScrolledToEdge?: boolean;
|
|
602
|
+
sheetExpandsWhenScrolledToEdge?: boolean | undefined;
|
|
603
603
|
/**
|
|
604
604
|
* The corner radius that the sheet will try to render with.
|
|
605
605
|
* Works only when `presentation` is set to `formSheet`.
|
|
@@ -608,7 +608,7 @@ export type NativeStackNavigationOptions = {
|
|
|
608
608
|
*
|
|
609
609
|
* If left unset system default is used.
|
|
610
610
|
*/
|
|
611
|
-
sheetCornerRadius?: number;
|
|
611
|
+
sheetCornerRadius?: number | undefined;
|
|
612
612
|
/**
|
|
613
613
|
* Index of the detent the sheet should expand to after being opened.
|
|
614
614
|
* Works only when `stackPresentation` is set to `formSheet`.
|
|
@@ -620,7 +620,7 @@ export type NativeStackNavigationOptions = {
|
|
|
620
620
|
*
|
|
621
621
|
* Defaults to `0` - which represents first detent in the detents array.
|
|
622
622
|
*/
|
|
623
|
-
sheetInitialDetentIndex?: number | 'last';
|
|
623
|
+
sheetInitialDetentIndex?: number | 'last' | undefined;
|
|
624
624
|
/**
|
|
625
625
|
* Boolean indicating whether the sheet shows a grabber at the top.
|
|
626
626
|
* Works only when `presentation` is set to `formSheet`.
|
|
@@ -628,7 +628,7 @@ export type NativeStackNavigationOptions = {
|
|
|
628
628
|
*
|
|
629
629
|
* @platform ios
|
|
630
630
|
*/
|
|
631
|
-
sheetGrabberVisible?: boolean;
|
|
631
|
+
sheetGrabberVisible?: boolean | undefined;
|
|
632
632
|
/**
|
|
633
633
|
* The largest sheet detent for which a view underneath won't be dimmed.
|
|
634
634
|
* Works only when `presentation` is set to `formSheet`.
|
|
@@ -648,7 +648,7 @@ export type NativeStackNavigationOptions = {
|
|
|
648
648
|
*
|
|
649
649
|
* Defaults to `none`, indicating that the dimming view should be always present.
|
|
650
650
|
*/
|
|
651
|
-
sheetLargestUndimmedDetentIndex?: number | 'none' | 'last';
|
|
651
|
+
sheetLargestUndimmedDetentIndex?: number | 'none' | 'last' | undefined;
|
|
652
652
|
/**
|
|
653
653
|
* Whether the sheet content should be rendered behind the Status Bar or display cutouts.
|
|
654
654
|
*
|
|
@@ -664,7 +664,7 @@ export type NativeStackNavigationOptions = {
|
|
|
664
664
|
*
|
|
665
665
|
* @platform android
|
|
666
666
|
*/
|
|
667
|
-
sheetShouldOverflowTopInset?: boolean;
|
|
667
|
+
sheetShouldOverflowTopInset?: boolean | undefined;
|
|
668
668
|
/**
|
|
669
669
|
* Whether the default native animation should be used when the sheet's with
|
|
670
670
|
* `fitToContents` content size changes.
|
|
@@ -681,7 +681,7 @@ export type NativeStackNavigationOptions = {
|
|
|
681
681
|
*
|
|
682
682
|
* @platform android
|
|
683
683
|
*/
|
|
684
|
-
sheetResizeAnimationEnabled?: boolean;
|
|
684
|
+
sheetResizeAnimationEnabled?: boolean | undefined;
|
|
685
685
|
/**
|
|
686
686
|
* The display orientation to use for the screen.
|
|
687
687
|
*
|
|
@@ -697,15 +697,7 @@ export type NativeStackNavigationOptions = {
|
|
|
697
697
|
*
|
|
698
698
|
* Only supported on iOS and Android.
|
|
699
699
|
*/
|
|
700
|
-
orientation?: ScreenProps['screenOrientation'];
|
|
701
|
-
/**
|
|
702
|
-
* Whether inactive screens should be suspended from re-rendering. Defaults to `false`.
|
|
703
|
-
* Defaults to `true` when `enableFreeze()` is run at the top of the application.
|
|
704
|
-
* Requires `react-native-screens` version >=3.16.0.
|
|
705
|
-
*
|
|
706
|
-
* Only supported on iOS and Android.
|
|
707
|
-
*/
|
|
708
|
-
freezeOnBlur?: boolean;
|
|
700
|
+
orientation?: ScreenProps['screenOrientation'] | undefined;
|
|
709
701
|
/**
|
|
710
702
|
* Configures the scroll edge effect for the _content ScrollView_ (the ScrollView that is present in first descendants chain of the Screen).
|
|
711
703
|
* Depending on values set, it will blur the scrolling content below certain UI elements (header items, search bar)
|
|
@@ -730,11 +722,11 @@ export type NativeStackNavigationOptions = {
|
|
|
730
722
|
* @supported iOS 26 or higher
|
|
731
723
|
*/
|
|
732
724
|
scrollEdgeEffects?: {
|
|
733
|
-
bottom?: ScrollEdgeEffect;
|
|
734
|
-
left?: ScrollEdgeEffect;
|
|
735
|
-
right?: ScrollEdgeEffect;
|
|
736
|
-
top?: ScrollEdgeEffect;
|
|
737
|
-
};
|
|
725
|
+
bottom?: ScrollEdgeEffect | undefined;
|
|
726
|
+
left?: ScrollEdgeEffect | undefined;
|
|
727
|
+
right?: ScrollEdgeEffect | undefined;
|
|
728
|
+
top?: ScrollEdgeEffect | undefined;
|
|
729
|
+
} | undefined;
|
|
738
730
|
/**
|
|
739
731
|
* Footer component that can be used alongside formSheet stack presentation style.
|
|
740
732
|
*
|
|
@@ -747,7 +739,18 @@ export type NativeStackNavigationOptions = {
|
|
|
747
739
|
*
|
|
748
740
|
* @platform android
|
|
749
741
|
*/
|
|
750
|
-
unstable_sheetFooter?: () => React.ReactNode;
|
|
742
|
+
unstable_sheetFooter?: (() => React.ReactNode) | undefined;
|
|
743
|
+
/**
|
|
744
|
+
* What should happen when screens become inactive.
|
|
745
|
+
* - `pause`: Effects are cleaned up.
|
|
746
|
+
* - `none`: Screen renders normally
|
|
747
|
+
*
|
|
748
|
+
* Defaults to `pause`.
|
|
749
|
+
*
|
|
750
|
+
* Preloaded screens won't be paused until after navigated to.
|
|
751
|
+
* This makes sure that effects are run to initialize the screen.
|
|
752
|
+
*/
|
|
753
|
+
inactiveBehavior?: ('pause' | 'none') | undefined;
|
|
751
754
|
};
|
|
752
755
|
type PlatformIconShared = {
|
|
753
756
|
/**
|
|
@@ -766,7 +769,7 @@ type PlatformIconShared = {
|
|
|
766
769
|
*
|
|
767
770
|
* @platform ios
|
|
768
771
|
*/
|
|
769
|
-
tinted?: boolean;
|
|
772
|
+
tinted?: boolean | undefined;
|
|
770
773
|
};
|
|
771
774
|
type PlatformIconIOSSfSymbol = {
|
|
772
775
|
/**
|
|
@@ -788,59 +791,59 @@ type SharedHeaderItem = {
|
|
|
788
791
|
* Style for the item label.
|
|
789
792
|
*/
|
|
790
793
|
labelStyle?: {
|
|
791
|
-
fontFamily?: string;
|
|
792
|
-
fontSize?: number;
|
|
793
|
-
fontWeight?: string;
|
|
794
|
-
color?: ColorValue;
|
|
795
|
-
};
|
|
794
|
+
fontFamily?: string | undefined;
|
|
795
|
+
fontSize?: number | undefined;
|
|
796
|
+
fontWeight?: string | undefined;
|
|
797
|
+
color?: ColorValue | undefined;
|
|
798
|
+
} | undefined;
|
|
796
799
|
/**
|
|
797
800
|
* Icon for the item
|
|
798
801
|
*/
|
|
799
|
-
icon?: PlatformIconIOS;
|
|
802
|
+
icon?: PlatformIconIOS | undefined;
|
|
800
803
|
/**
|
|
801
804
|
* The variant of the item.
|
|
802
805
|
* "prominent" only available from iOS 26.0 and later.
|
|
803
806
|
*
|
|
804
807
|
* Read more: https://developer.apple.com/documentation/uikit/uibarbuttonitem/style-swift.property
|
|
805
808
|
*/
|
|
806
|
-
variant?: 'plain' | 'done' | 'prominent';
|
|
809
|
+
variant?: 'plain' | 'done' | 'prominent' | undefined;
|
|
807
810
|
/**
|
|
808
811
|
* The tint color to apply to the item.
|
|
809
812
|
*
|
|
810
813
|
* Read more: https://developer.apple.com/documentation/uikit/uibarbuttonitem/tintcolor
|
|
811
814
|
*/
|
|
812
|
-
tintColor?: ColorValue;
|
|
815
|
+
tintColor?: ColorValue | undefined;
|
|
813
816
|
/**
|
|
814
817
|
* Whether the item is in a disabled state.
|
|
815
818
|
*/
|
|
816
|
-
disabled?: boolean;
|
|
819
|
+
disabled?: boolean | undefined;
|
|
817
820
|
/**
|
|
818
821
|
* The width of the item.
|
|
819
822
|
*
|
|
820
823
|
* Read more: https://developer.apple.com/documentation/uikit/uibarbuttonitem/width
|
|
821
824
|
*/
|
|
822
|
-
width?: number;
|
|
825
|
+
width?: number | undefined;
|
|
823
826
|
/**
|
|
824
827
|
* Whether the background this item may share with other items in the bar should be hidden.
|
|
825
828
|
* Only available from iOS 26.0 and later.
|
|
826
829
|
*
|
|
827
830
|
* Read more: https://developer.apple.com/documentation/uikit/uibarbuttonitem/hidessharedbackground
|
|
828
831
|
*/
|
|
829
|
-
hidesSharedBackground?: boolean;
|
|
832
|
+
hidesSharedBackground?: boolean | undefined;
|
|
830
833
|
/**
|
|
831
834
|
* Whether this item can share a background with other items.
|
|
832
835
|
* Only available from iOS 26.0 and later.
|
|
833
836
|
*
|
|
834
837
|
* Read more: https://developer.apple.com/documentation/uikit/uibarbuttonitem/sharesbackground
|
|
835
838
|
*/
|
|
836
|
-
sharesBackground?: boolean;
|
|
839
|
+
sharesBackground?: boolean | undefined;
|
|
837
840
|
/**
|
|
838
841
|
* An identifier used to match items across transitions.
|
|
839
842
|
* Only available from iOS 26.0 and later.
|
|
840
843
|
*
|
|
841
844
|
* Read more: https://developer.apple.com/documentation/uikit/uibarbuttonitem/identifier
|
|
842
845
|
*/
|
|
843
|
-
identifier?: string;
|
|
846
|
+
identifier?: string | undefined;
|
|
844
847
|
/**
|
|
845
848
|
* A badge to display on a item.
|
|
846
849
|
* Only available from iOS 26.0 and later.
|
|
@@ -856,21 +859,21 @@ type SharedHeaderItem = {
|
|
|
856
859
|
* Style of the badge.
|
|
857
860
|
*/
|
|
858
861
|
style?: {
|
|
859
|
-
color?: ColorValue;
|
|
860
|
-
backgroundColor?: ColorValue;
|
|
861
|
-
fontFamily?: string;
|
|
862
|
-
fontSize?: number;
|
|
863
|
-
fontWeight?: string;
|
|
864
|
-
};
|
|
865
|
-
};
|
|
862
|
+
color?: ColorValue | undefined;
|
|
863
|
+
backgroundColor?: ColorValue | undefined;
|
|
864
|
+
fontFamily?: string | undefined;
|
|
865
|
+
fontSize?: number | undefined;
|
|
866
|
+
fontWeight?: string | undefined;
|
|
867
|
+
} | undefined;
|
|
868
|
+
} | undefined;
|
|
866
869
|
/**
|
|
867
870
|
* Accessibility label for the item.
|
|
868
871
|
*/
|
|
869
|
-
accessibilityLabel?: string;
|
|
872
|
+
accessibilityLabel?: string | undefined;
|
|
870
873
|
/**
|
|
871
874
|
* Accessibility hint for the item.
|
|
872
875
|
*/
|
|
873
|
-
accessibilityHint?: string;
|
|
876
|
+
accessibilityHint?: string | undefined;
|
|
874
877
|
};
|
|
875
878
|
/**
|
|
876
879
|
* A button item in the header.
|
|
@@ -889,7 +892,7 @@ export type NativeStackHeaderItemButton = SharedHeaderItem & {
|
|
|
889
892
|
*
|
|
890
893
|
* Read more: https://developer.apple.com/documentation/uikit/uibarbuttonitem/isselected
|
|
891
894
|
*/
|
|
892
|
-
selected?: boolean;
|
|
895
|
+
selected?: boolean | undefined;
|
|
893
896
|
};
|
|
894
897
|
/**
|
|
895
898
|
* An action item in a menu.
|
|
@@ -903,11 +906,11 @@ export type NativeStackHeaderItemMenuAction = {
|
|
|
903
906
|
/**
|
|
904
907
|
* The secondary text displayed alongside the label of the menu item.
|
|
905
908
|
*/
|
|
906
|
-
description?: string;
|
|
909
|
+
description?: string | undefined;
|
|
907
910
|
/**
|
|
908
911
|
* Icon for the menu item.
|
|
909
912
|
*/
|
|
910
|
-
icon?:
|
|
913
|
+
icon?: PlatformIconIOS | undefined;
|
|
911
914
|
/**
|
|
912
915
|
* Function to call when the menu item is pressed.
|
|
913
916
|
*/
|
|
@@ -917,31 +920,31 @@ export type NativeStackHeaderItemMenuAction = {
|
|
|
917
920
|
*
|
|
918
921
|
* Read more: https://developer.apple.com/documentation/uikit/uimenuelement/state
|
|
919
922
|
*/
|
|
920
|
-
state?: 'on' | 'off' | 'mixed';
|
|
923
|
+
state?: 'on' | 'off' | 'mixed' | undefined;
|
|
921
924
|
/**
|
|
922
925
|
* Whether to apply disabled style to the item.
|
|
923
926
|
*
|
|
924
927
|
* Read more: https://developer.apple.com/documentation/uikit/uimenuelement/attributes/disabled
|
|
925
928
|
*/
|
|
926
|
-
disabled?: boolean;
|
|
929
|
+
disabled?: boolean | undefined;
|
|
927
930
|
/**
|
|
928
931
|
* Whether to apply destructive style to the item.
|
|
929
932
|
*
|
|
930
933
|
* Read more: https://developer.apple.com/documentation/uikit/uimenuelement/attributes/destructive
|
|
931
934
|
*/
|
|
932
|
-
destructive?: boolean;
|
|
935
|
+
destructive?: boolean | undefined;
|
|
933
936
|
/**
|
|
934
937
|
* Whether to apply hidden style to the item.
|
|
935
938
|
*
|
|
936
939
|
* Read more: https://developer.apple.com/documentation/uikit/uimenuelement/attributes/hidden
|
|
937
940
|
*/
|
|
938
|
-
hidden?: boolean;
|
|
941
|
+
hidden?: boolean | undefined;
|
|
939
942
|
/**
|
|
940
|
-
* Whether to keep the menu presented after firing the element
|
|
943
|
+
* Whether to keep the menu presented after firing the element's action.
|
|
941
944
|
*
|
|
942
945
|
* Read more: https://developer.apple.com/documentation/uikit/uimenuelement/attributes/keepsmenupresented
|
|
943
946
|
*/
|
|
944
|
-
keepsMenuPresented?: boolean;
|
|
947
|
+
keepsMenuPresented?: boolean | undefined;
|
|
945
948
|
/**
|
|
946
949
|
* An elaborated title that explains the purpose of the action.
|
|
947
950
|
*
|
|
@@ -950,7 +953,7 @@ export type NativeStackHeaderItemMenuAction = {
|
|
|
950
953
|
*
|
|
951
954
|
* Read more: https://developer.apple.com/documentation/uikit/uiaction/discoverabilitytitle
|
|
952
955
|
*/
|
|
953
|
-
discoverabilityLabel?: string;
|
|
956
|
+
discoverabilityLabel?: string | undefined;
|
|
954
957
|
};
|
|
955
958
|
/**
|
|
956
959
|
* A submenu item that contains other menu items.
|
|
@@ -964,7 +967,7 @@ export type NativeStackHeaderItemMenuSubmenu = {
|
|
|
964
967
|
/**
|
|
965
968
|
* Icon for the submenu item.
|
|
966
969
|
*/
|
|
967
|
-
icon?:
|
|
970
|
+
icon?: PlatformIconIOS | undefined;
|
|
968
971
|
/**
|
|
969
972
|
* Whether the menu is displayed inline with the parent menu.
|
|
970
973
|
* By default, submenus are displayed after expanding the parent menu item.
|
|
@@ -974,7 +977,7 @@ export type NativeStackHeaderItemMenuSubmenu = {
|
|
|
974
977
|
*
|
|
975
978
|
* Read more: https://developer.apple.com/documentation/uikit/uimenu/options-swift.struct/displayinline
|
|
976
979
|
*/
|
|
977
|
-
inline?: boolean;
|
|
980
|
+
inline?: boolean | undefined;
|
|
978
981
|
/**
|
|
979
982
|
* How the submenu items are displayed.
|
|
980
983
|
* - `default`: menu items are displayed normally.
|
|
@@ -984,13 +987,13 @@ export type NativeStackHeaderItemMenuSubmenu = {
|
|
|
984
987
|
*
|
|
985
988
|
* Read more: https://developer.apple.com/documentation/uikit/uimenu/options-swift.struct/displayaspalette
|
|
986
989
|
*/
|
|
987
|
-
layout?: 'default' | 'palette';
|
|
990
|
+
layout?: 'default' | 'palette' | undefined;
|
|
988
991
|
/**
|
|
989
992
|
* Whether to apply destructive style to the menu item.
|
|
990
993
|
*
|
|
991
994
|
* Read more: https://developer.apple.com/documentation/uikit/uimenuelement/attributes/destructive
|
|
992
995
|
*/
|
|
993
|
-
destructive?: boolean;
|
|
996
|
+
destructive?: boolean | undefined;
|
|
994
997
|
/**
|
|
995
998
|
* Whether multiple items in the submenu can be selected, i.e. in "on" state.
|
|
996
999
|
*
|
|
@@ -998,7 +1001,7 @@ export type NativeStackHeaderItemMenuSubmenu = {
|
|
|
998
1001
|
*
|
|
999
1002
|
* Read more: https://developer.apple.com/documentation/uikit/uimenu/options-swift.struct/singleselection
|
|
1000
1003
|
*/
|
|
1001
|
-
multiselectable?: boolean;
|
|
1004
|
+
multiselectable?: boolean | undefined;
|
|
1002
1005
|
/**
|
|
1003
1006
|
* Array of menu items (actions or submenus).
|
|
1004
1007
|
*/
|
|
@@ -1015,7 +1018,7 @@ export type NativeStackHeaderItemMenu = SharedHeaderItem & {
|
|
|
1015
1018
|
*
|
|
1016
1019
|
* Read more: https://developer.apple.com/documentation/uikit/uibarbuttonitem/changesselectionasprimaryaction
|
|
1017
1020
|
*/
|
|
1018
|
-
changesSelectionAsPrimaryAction?: boolean;
|
|
1021
|
+
changesSelectionAsPrimaryAction?: boolean | undefined;
|
|
1019
1022
|
/**
|
|
1020
1023
|
* Menu for the item.
|
|
1021
1024
|
*/
|
|
@@ -1023,7 +1026,7 @@ export type NativeStackHeaderItemMenu = SharedHeaderItem & {
|
|
|
1023
1026
|
/**
|
|
1024
1027
|
* Optional title to show on top of the menu.
|
|
1025
1028
|
*/
|
|
1026
|
-
title?: string;
|
|
1029
|
+
title?: string | undefined;
|
|
1027
1030
|
/**
|
|
1028
1031
|
* Whether multiple items in the submenu can be selected, i.e. in "on" state.
|
|
1029
1032
|
*
|
|
@@ -1031,7 +1034,7 @@ export type NativeStackHeaderItemMenu = SharedHeaderItem & {
|
|
|
1031
1034
|
*
|
|
1032
1035
|
* Read more: https://developer.apple.com/documentation/uikit/uimenu/options-swift.struct/singleselection
|
|
1033
1036
|
*/
|
|
1034
|
-
multiselectable?: boolean;
|
|
1037
|
+
multiselectable?: boolean | undefined;
|
|
1035
1038
|
/**
|
|
1036
1039
|
* How the submenu items are displayed.
|
|
1037
1040
|
* - `default`: menu items are displayed normally.
|
|
@@ -1041,7 +1044,7 @@ export type NativeStackHeaderItemMenu = SharedHeaderItem & {
|
|
|
1041
1044
|
*
|
|
1042
1045
|
* Read more: https://developer.apple.com/documentation/uikit/uimenu/options-swift.struct/displayaspalette
|
|
1043
1046
|
*/
|
|
1044
|
-
layout?: 'default' | 'palette';
|
|
1047
|
+
layout?: 'default' | 'palette' | undefined;
|
|
1045
1048
|
/**
|
|
1046
1049
|
* Array of menu items (actions or submenus).
|
|
1047
1050
|
*/
|
|
@@ -1073,7 +1076,7 @@ export type NativeStackHeaderItemCustom = {
|
|
|
1073
1076
|
*
|
|
1074
1077
|
* Read more: https://developer.apple.com/documentation/uikit/uibarbuttonitem/hidessharedbackground
|
|
1075
1078
|
*/
|
|
1076
|
-
hidesSharedBackground?: boolean;
|
|
1079
|
+
hidesSharedBackground?: boolean | undefined;
|
|
1077
1080
|
};
|
|
1078
1081
|
/**
|
|
1079
1082
|
* An item that can be displayed in the header.
|