@react-navigation/bottom-tabs 7.6.0 → 7.7.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.
Files changed (56) hide show
  1. package/lib/module/unstable/NativeBottomTabView.js +6 -0
  2. package/lib/module/unstable/NativeBottomTabView.js.map +1 -0
  3. package/lib/module/unstable/NativeBottomTabView.native.js +225 -0
  4. package/lib/module/unstable/NativeBottomTabView.native.js.map +1 -0
  5. package/lib/module/unstable/NativeScreen/NativeScreen.js +166 -0
  6. package/lib/module/unstable/NativeScreen/NativeScreen.js.map +1 -0
  7. package/lib/module/unstable/NativeScreen/debounce.js +12 -0
  8. package/lib/module/unstable/NativeScreen/debounce.js.map +1 -0
  9. package/lib/module/unstable/NativeScreen/types.js +4 -0
  10. package/lib/module/unstable/NativeScreen/types.js.map +1 -0
  11. package/lib/module/unstable/NativeScreen/useAnimatedHeaderHeight.js +12 -0
  12. package/lib/module/unstable/NativeScreen/useAnimatedHeaderHeight.js.map +1 -0
  13. package/lib/module/unstable/NativeScreen/useHeaderConfig.js +283 -0
  14. package/lib/module/unstable/NativeScreen/useHeaderConfig.js.map +1 -0
  15. package/lib/module/unstable/createNativeBottomTabNavigator.js +6 -0
  16. package/lib/module/unstable/createNativeBottomTabNavigator.js.map +1 -0
  17. package/lib/module/unstable/createNativeBottomTabNavigator.native.js +65 -0
  18. package/lib/module/unstable/createNativeBottomTabNavigator.native.js.map +1 -0
  19. package/lib/module/unstable/index.js +16 -0
  20. package/lib/module/unstable/index.js.map +1 -0
  21. package/lib/module/unstable/types.js +4 -0
  22. package/lib/module/unstable/types.js.map +1 -0
  23. package/lib/typescript/src/unstable/NativeBottomTabView.d.ts +10 -0
  24. package/lib/typescript/src/unstable/NativeBottomTabView.d.ts.map +1 -0
  25. package/lib/typescript/src/unstable/NativeBottomTabView.native.d.ts +10 -0
  26. package/lib/typescript/src/unstable/NativeBottomTabView.native.d.ts.map +1 -0
  27. package/lib/typescript/src/unstable/NativeScreen/NativeScreen.d.ts +8 -0
  28. package/lib/typescript/src/unstable/NativeScreen/NativeScreen.d.ts.map +1 -0
  29. package/lib/typescript/src/unstable/NativeScreen/debounce.d.ts +2 -0
  30. package/lib/typescript/src/unstable/NativeScreen/debounce.d.ts.map +1 -0
  31. package/lib/typescript/src/unstable/NativeScreen/types.d.ts +467 -0
  32. package/lib/typescript/src/unstable/NativeScreen/types.d.ts.map +1 -0
  33. package/lib/typescript/src/unstable/NativeScreen/useAnimatedHeaderHeight.d.ts +5 -0
  34. package/lib/typescript/src/unstable/NativeScreen/useAnimatedHeaderHeight.d.ts.map +1 -0
  35. package/lib/typescript/src/unstable/NativeScreen/useHeaderConfig.d.ts +11 -0
  36. package/lib/typescript/src/unstable/NativeScreen/useHeaderConfig.d.ts.map +1 -0
  37. package/lib/typescript/src/unstable/createNativeBottomTabNavigator.d.ts +2 -0
  38. package/lib/typescript/src/unstable/createNativeBottomTabNavigator.d.ts.map +1 -0
  39. package/lib/typescript/src/unstable/createNativeBottomTabNavigator.native.d.ts +16 -0
  40. package/lib/typescript/src/unstable/createNativeBottomTabNavigator.native.d.ts.map +1 -0
  41. package/lib/typescript/src/unstable/index.d.ts +13 -0
  42. package/lib/typescript/src/unstable/index.d.ts.map +1 -0
  43. package/lib/typescript/src/unstable/types.d.ts +276 -0
  44. package/lib/typescript/src/unstable/types.d.ts.map +1 -0
  45. package/package.json +10 -4
  46. package/src/unstable/NativeBottomTabView.native.tsx +303 -0
  47. package/src/unstable/NativeBottomTabView.tsx +20 -0
  48. package/src/unstable/NativeScreen/NativeScreen.tsx +242 -0
  49. package/src/unstable/NativeScreen/debounce.tsx +14 -0
  50. package/src/unstable/NativeScreen/types.ts +517 -0
  51. package/src/unstable/NativeScreen/useAnimatedHeaderHeight.tsx +18 -0
  52. package/src/unstable/NativeScreen/useHeaderConfig.tsx +423 -0
  53. package/src/unstable/createNativeBottomTabNavigator.native.tsx +116 -0
  54. package/src/unstable/createNativeBottomTabNavigator.tsx +4 -0
  55. package/src/unstable/index.tsx +22 -0
  56. package/src/unstable/types.tsx +353 -0
@@ -0,0 +1,467 @@
1
+ import * as React from 'react';
2
+ import type { ColorValue, ImageSourcePropType, StyleProp, TextStyle } from 'react-native';
3
+ import type { ScreenStackHeaderConfigProps, SearchBarProps } from 'react-native-screens';
4
+ import type { SFSymbol } from 'sf-symbols-typescript';
5
+ import type { NativeBottomTabHeaderProps } from '../types';
6
+ export type NativeHeaderOptions = {
7
+ /**
8
+ * String that can be displayed in the header as a fallback for `headerTitle`.
9
+ */
10
+ title?: string;
11
+ /**
12
+ * Style of the header when a large title is shown
13
+ * The large title is shown if `headerLargeTitle` is `true` and
14
+ * the edge of any scrollable content reaches the matching edge of the header.
15
+ *
16
+ * Supported properties:
17
+ * - backgroundColor
18
+ *
19
+ * Only supported on iOS.
20
+ *
21
+ * @platform ios
22
+ */
23
+ headerLargeStyle?: StyleProp<{
24
+ backgroundColor?: ColorValue;
25
+ }>;
26
+ /**
27
+ * Whether to enable header with large title which collapses to regular header on scroll.
28
+ *
29
+ * For large title to collapse on scroll, the content of the screen should be wrapped in a scrollable view such as `ScrollView` or `FlatList`.
30
+ * If the scrollable area doesn't fill the screen, the large title won't collapse on scroll.
31
+ * You also need to specify `contentInsetAdjustmentBehavior="automatic"` in your `ScrollView`, `FlatList` etc.
32
+ *
33
+ * Only supported on iOS.
34
+ *
35
+ * @platform ios
36
+ */
37
+ headerLargeTitle?: boolean;
38
+ /**
39
+ * Whether drop shadow of header is visible when a large title is shown.
40
+ *
41
+ * Only supported on iOS.
42
+ *
43
+ * @platform ios
44
+ */
45
+ headerLargeTitleShadowVisible?: boolean;
46
+ /**
47
+ * Style object for large title in header. Supported properties:
48
+ * - fontFamily
49
+ * - fontSize
50
+ * - fontWeight
51
+ * - color
52
+ *
53
+ * Only supported on iOS.
54
+ *
55
+ * @platform ios
56
+ */
57
+ headerLargeTitleStyle?: StyleProp<{
58
+ fontFamily?: string;
59
+ fontSize?: number;
60
+ fontWeight?: string;
61
+ color?: ColorValue;
62
+ }>;
63
+ /**
64
+ * Style object for header. Supported properties:
65
+ * - backgroundColor
66
+ */
67
+ headerStyle?: StyleProp<{
68
+ backgroundColor?: ColorValue;
69
+ }>;
70
+ /**
71
+ * Whether to hide the elevation shadow (Android) or the bottom border (iOS) on the header.
72
+ */
73
+ headerShadowVisible?: boolean;
74
+ /**
75
+ * Boolean indicating whether the navigation bar is translucent.
76
+ * Setting this to `true` makes the header absolutely positioned,
77
+ * and changes the background color to `transparent` unless specified in `headerStyle`.
78
+ */
79
+ headerTransparent?: boolean;
80
+ /**
81
+ * Blur effect for the translucent header.
82
+ * The `headerTransparent` option needs to be set to `true` for this to work.
83
+ *
84
+ * Only supported on iOS.
85
+ *
86
+ * @platform ios
87
+ */
88
+ headerBlurEffect?: ScreenStackHeaderConfigProps['blurEffect'];
89
+ /**
90
+ * Tint color for the header. Changes the color of back button and title.
91
+ */
92
+ headerTintColor?: string;
93
+ /**
94
+ * Function which returns a React Element to render as the background of the header.
95
+ * This is useful for using backgrounds such as an image, a gradient, blur effect etc.
96
+ * You can use this with `headerTransparent` to render content underneath a translucent header.
97
+ */
98
+ headerBackground?: () => React.ReactNode;
99
+ /**
100
+ * Function which returns a React Element to display on the left side of the header.
101
+ * This replaces the back button. See `headerBackVisible` to show the back button along side left element.
102
+ * Will be overriden by `headerLeftItems` on iOS.
103
+ */
104
+ headerLeft?: (props: NativeScreenHeaderItemProps) => React.ReactNode;
105
+ /**
106
+ * Function which returns a React Element to display on the right side of the header.
107
+ * Will be overriden by `headerRightItems` on iOS.
108
+ */
109
+ headerRight?: (props: NativeScreenHeaderItemProps) => React.ReactNode;
110
+ /**
111
+ * Function which returns an array of items to display as on the left side of the header.
112
+ * Overrides `headerLeft`.
113
+ *
114
+ * This is an unstable API and might change in the future.
115
+ *
116
+ * @platform ios
117
+ */
118
+ unstable_headerLeftItems?: (props: NativeScreenHeaderItemProps) => NativeScreenHeaderItem[];
119
+ /**
120
+ * Function which returns an array of items to display as on the right side of the header.
121
+ * Overrides `headerRight`.
122
+ *
123
+ * This is an unstable API and might change in the future.
124
+ *
125
+ * @platform ios
126
+ */
127
+ unstable_headerRightItems?: (props: NativeScreenHeaderItemProps) => NativeScreenHeaderItem[];
128
+ /**
129
+ * String or a function that returns a React Element to be used by the header.
130
+ * Defaults to screen `title` or route name.
131
+ *
132
+ * When a function is passed, it receives `tintColor` and`children` in the options object as an argument.
133
+ * The title string is passed in `children`.
134
+ *
135
+ * Note that if you render a custom element by passing a function, animations for the title won't work.
136
+ */
137
+ headerTitle?: string | ((props: {
138
+ /**
139
+ * The title text of the header.
140
+ */
141
+ children: string;
142
+ /**
143
+ * Tint color for the header.
144
+ */
145
+ tintColor?: string;
146
+ }) => React.ReactNode);
147
+ /**
148
+ * How to align the the header title.
149
+ * Defaults to `left` on platforms other than iOS.
150
+ *
151
+ * Not supported on iOS. It's always `center` on iOS and cannot be changed.
152
+ */
153
+ headerTitleAlign?: 'left' | 'center';
154
+ /**
155
+ * Style object for header title. Supported properties:
156
+ * - fontFamily
157
+ * - fontSize
158
+ * - fontWeight
159
+ * - color
160
+ */
161
+ headerTitleStyle?: StyleProp<Pick<TextStyle, 'fontFamily' | 'fontSize' | 'fontWeight'> & {
162
+ color?: string;
163
+ }>;
164
+ /**
165
+ * Options to render a native search bar.
166
+ * You also need to specify `contentInsetAdjustmentBehavior="automatic"` in your `ScrollView`, `FlatList` etc.
167
+ * If you don't have a `ScrollView`, specify `headerTransparent: false`.
168
+ */
169
+ headerSearchBarOptions?: SearchBarProps;
170
+ /**
171
+ * Whether to show the header. Setting this to `false` hides the header.
172
+ * Defaults to `true`.
173
+ */
174
+ headerShown?: boolean;
175
+ /**
176
+ * Function that given returns a React Element to display as a header.
177
+ */
178
+ header?: (props: NativeBottomTabHeaderProps) => React.ReactNode;
179
+ };
180
+ export type NativeScreenHeaderItemProps = {
181
+ /**
182
+ * Tint color for the header.
183
+ */
184
+ tintColor?: ColorValue;
185
+ };
186
+ /**
187
+ * A button item in the header.
188
+ */
189
+ export type NativeScreenHeaderItemButton = SharedHeaderItem & {
190
+ /**
191
+ * Type of the item.
192
+ */
193
+ type: 'button';
194
+ /**
195
+ * Function to call when the item is pressed.
196
+ */
197
+ onPress: () => void;
198
+ /**
199
+ * Whether the item is in a selected state.
200
+ *
201
+ * Read more: https://developer.apple.com/documentation/uikit/uibarbuttonitem/isselected
202
+ */
203
+ selected?: boolean;
204
+ };
205
+ /**
206
+ * An action item in a menu.
207
+ */
208
+ export type NativeScreenHeaderItemMenuAction = {
209
+ type: 'action';
210
+ /**
211
+ * Label for the menu item.
212
+ */
213
+ label: string;
214
+ /**
215
+ * Icon for the menu item.
216
+ */
217
+ icon?: IconIOSSfSymbol;
218
+ /**
219
+ * Function to call when the menu item is pressed.
220
+ */
221
+ onPress: () => void;
222
+ /**
223
+ * The state of an action- or command-based menu item.
224
+ *
225
+ * Read more: https://developer.apple.com/documentation/uikit/uimenuelement/state
226
+ */
227
+ state?: 'on' | 'off' | 'mixed';
228
+ /**
229
+ * Whether to apply disabled style to the item.
230
+ *
231
+ * Read more: https://developer.apple.com/documentation/uikit/uimenuelement/attributes/disabled
232
+ */
233
+ disabled?: boolean;
234
+ /**
235
+ * Whether to apply destructive style to the item.
236
+ *
237
+ * Read more: https://developer.apple.com/documentation/uikit/uimenuelement/attributes/destructive
238
+ */
239
+ destructive?: boolean;
240
+ /**
241
+ * Whether to apply hidden style to the item.
242
+ *
243
+ * Read more: https://developer.apple.com/documentation/uikit/uimenuelement/attributes/hidden
244
+ */
245
+ hidden?: boolean;
246
+ /**
247
+ * Whether to keep the menu presented after firing the element’s action.
248
+ *
249
+ * Read more: https://developer.apple.com/documentation/uikit/uimenuelement/attributes/keepsmenupresented
250
+ */
251
+ keepsMenuPresented?: boolean;
252
+ /**
253
+ * An elaborated title that explains the purpose of the action.
254
+ *
255
+ * On iOS, the system displays this title in the discoverability heads-up display (HUD).
256
+ * If this is not set, the HUD displays the title property.
257
+ *
258
+ * Read more: https://developer.apple.com/documentation/uikit/uiaction/discoverabilitytitle
259
+ */
260
+ discoverabilityLabel?: string;
261
+ };
262
+ /**
263
+ * A submenu item that contains other menu items.
264
+ */
265
+ export type NativeScreenHeaderItemMenuSubmenu = {
266
+ type: 'submenu';
267
+ /**
268
+ * Label for the submenu item.
269
+ */
270
+ label: string;
271
+ /**
272
+ * Icon for the submenu item.
273
+ */
274
+ icon?: IconIOSSfSymbol;
275
+ /**
276
+ * Array of menu items (actions or submenus).
277
+ */
278
+ items: NativeScreenHeaderItemMenu['menu']['items'];
279
+ };
280
+ /**
281
+ * An item that shows a menu when pressed.
282
+ */
283
+ export type NativeScreenHeaderItemMenu = SharedHeaderItem & {
284
+ type: 'menu';
285
+ /**
286
+ * Whether the menu is a selection menu.
287
+ * Tapping an item in a selection menu will add a checkmark to the selected item.
288
+ *
289
+ * Read more: https://developer.apple.com/documentation/uikit/uibarbuttonitem/changesselectionasprimaryaction
290
+ */
291
+ changesSelectionAsPrimaryAction?: boolean;
292
+ /**
293
+ * Menu for the item.
294
+ */
295
+ menu: {
296
+ /**
297
+ * Optional title to show on top of the menu.
298
+ */
299
+ title?: string;
300
+ /**
301
+ * Array of menu items (actions or submenus).
302
+ */
303
+ items: (NativeScreenHeaderItemMenuAction | NativeScreenHeaderItemMenuSubmenu)[];
304
+ };
305
+ };
306
+ /**
307
+ * An item to add spacing between other items in the header.
308
+ */
309
+ export type NativeScreenHeaderItemSpacing = {
310
+ type: 'spacing';
311
+ /**
312
+ * The amount of spacing to add.
313
+ */
314
+ spacing: number;
315
+ };
316
+ /**
317
+ * A custom item to display any React Element in the header.
318
+ */
319
+ export type NativeScreenHeaderItemCustom = {
320
+ type: 'custom';
321
+ /**
322
+ * A React Element to display as the item.
323
+ */
324
+ element: React.ReactElement;
325
+ /**
326
+ * Whether the background this item may share with other items in the bar should be hidden.
327
+ * Only available from iOS 26.0 and later.
328
+ *
329
+ * Read more: https://developer.apple.com/documentation/uikit/uibarbuttonitem/hidessharedbackground
330
+ */
331
+ hidesSharedBackground?: boolean;
332
+ };
333
+ /**
334
+ * An item that can be displayed in the header.
335
+ * It can be a button, a menu, spacing, or a custom element.
336
+ *
337
+ * On iOS 26, when showing items on the right side of the header,
338
+ * if the items don't fit the available space, they will be collapsed into a menu automatically.
339
+ * Items with `type: 'custom'` will not be included in this automatic collapsing behavior.
340
+ */
341
+ export type NativeScreenHeaderItem = NativeScreenHeaderItemButton | NativeScreenHeaderItemMenu | NativeScreenHeaderItemSpacing | NativeScreenHeaderItemCustom;
342
+ type IconImage = {
343
+ /**
344
+ * - `image` - Use a local image as the icon.
345
+ */
346
+ type: 'image';
347
+ /**
348
+ * Image source to use as the icon.
349
+ * e.g., `require('./path/to/image.png')`
350
+ */
351
+ source: ImageSourcePropType;
352
+ /**
353
+ * Whether to apply tint color to the icon.
354
+ * Defaults to `true`.
355
+ *
356
+ * @platform ios
357
+ */
358
+ tinted?: boolean;
359
+ };
360
+ type IconIOSSfSymbol = {
361
+ /**
362
+ * - `sfSymbol` - Use an SF Symbol as the icon on iOS.
363
+ */
364
+ type: 'sfSymbol';
365
+ /**
366
+ * Name of the SF Symbol to use as the icon.
367
+ *
368
+ * @platform ios
369
+ */
370
+ name: SFSymbol;
371
+ };
372
+ type IconIOS = IconIOSSfSymbol | IconImage;
373
+ type SharedHeaderItem = {
374
+ /**
375
+ * Label of the item.
376
+ */
377
+ label: string;
378
+ /**
379
+ * Style for the item label.
380
+ */
381
+ labelStyle?: {
382
+ fontFamily?: string;
383
+ fontSize?: number;
384
+ fontWeight?: string;
385
+ color?: ColorValue;
386
+ };
387
+ /**
388
+ * Icon for the item
389
+ */
390
+ icon?: IconIOS;
391
+ /**
392
+ * The variant of the item.
393
+ * "prominent" only available from iOS 26.0 and later.
394
+ *
395
+ * Read more: https://developer.apple.com/documentation/uikit/uibarbuttonitem/style-swift.property
396
+ */
397
+ variant?: 'plain' | 'done' | 'prominent';
398
+ /**
399
+ * The tint color to apply to the item.
400
+ *
401
+ * Read more: https://developer.apple.com/documentation/uikit/uibarbuttonitem/tintcolor
402
+ */
403
+ tintColor?: ColorValue;
404
+ /**
405
+ * Whether the item is in a disabled state.
406
+ */
407
+ disabled?: boolean;
408
+ /**
409
+ * The width of the item.
410
+ *
411
+ * Read more: https://developer.apple.com/documentation/uikit/uibarbuttonitem/width
412
+ */
413
+ width?: number;
414
+ /**
415
+ * Whether the background this item may share with other items in the bar should be hidden.
416
+ * Only available from iOS 26.0 and later.
417
+ *
418
+ * Read more: https://developer.apple.com/documentation/uikit/uibarbuttonitem/hidessharedbackground
419
+ */
420
+ hidesSharedBackground?: boolean;
421
+ /**
422
+ * Whether this item can share a background with other items.
423
+ * Only available from iOS 26.0 and later.
424
+ *
425
+ * Read more: https://developer.apple.com/documentation/uikit/uibarbuttonitem/sharesbackground
426
+ */
427
+ sharesBackground?: boolean;
428
+ /**
429
+ * An identifier used to match items across transitions.
430
+ * Only available from iOS 26.0 and later.
431
+ *
432
+ * Read more: https://developer.apple.com/documentation/uikit/uibarbuttonitem/identifier
433
+ */
434
+ identifier?: string;
435
+ /**
436
+ * A badge to display on a item.
437
+ * Only available from iOS 26.0 and later.
438
+ *
439
+ * Read more: https://developer.apple.com/documentation/uikit/uibarbuttonitembadge
440
+ */
441
+ badge?: {
442
+ /**
443
+ * The text to display in the badge.
444
+ */
445
+ value: number | string;
446
+ /**
447
+ * Style of the badge.
448
+ */
449
+ style?: {
450
+ color?: ColorValue;
451
+ backgroundColor?: ColorValue;
452
+ fontFamily?: string;
453
+ fontSize?: number;
454
+ fontWeight?: string;
455
+ };
456
+ };
457
+ /**
458
+ * Accessibility label for the item.
459
+ */
460
+ accessibilityLabel?: string;
461
+ /**
462
+ * Accessibility hint for the item.
463
+ */
464
+ accessibilityHint?: string;
465
+ };
466
+ export {};
467
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/unstable/NativeScreen/types.ts"],"names":[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AAG,WAAW,CAAC;IACzC;;;;OAIG;IACH,SAAS,CAAC,EAAE,UAAU,CAAC;IACvB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;;;OAKG;IACH,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC;;;;;OAKG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B;;;;;OAKG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;;;OAKG;IACH,KAAK,CAAC,EAAE;QACN;;WAEG;QACH,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;QACvB;;WAEG;QACH,KAAK,CAAC,EAAE;YACN,KAAK,CAAC,EAAE,UAAU,CAAC;YACnB,eAAe,CAAC,EAAE,UAAU,CAAC;YAC7B,UAAU,CAAC,EAAE,MAAM,CAAC;YACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;YAClB,UAAU,CAAC,EAAE,MAAM,CAAC;SACrB,CAAC;KACH,CAAC;IACF;;OAEG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B,CAAC"}
@@ -0,0 +1,5 @@
1
+ import * as React from 'react';
2
+ import type { Animated } from 'react-native';
3
+ export declare const AnimatedHeaderHeightContext: React.Context<Animated.AnimatedInterpolation<number> | undefined>;
4
+ export declare function useAnimatedHeaderHeight(): Animated.AnimatedInterpolation<number>;
5
+ //# sourceMappingURL=useAnimatedHeaderHeight.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useAnimatedHeaderHeight.d.ts","sourceRoot":"","sources":["../../../../../src/unstable/NativeScreen/useAnimatedHeaderHeight.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAE7C,eAAO,MAAM,2BAA2B,mEAE5B,CAAC;AAEb,wBAAgB,uBAAuB,2CAUtC"}
@@ -0,0 +1,11 @@
1
+ import { type Route } from '@react-navigation/native';
2
+ import { type ScreenStackHeaderConfigProps } from 'react-native-screens';
3
+ import type { NativeHeaderOptions } from './types';
4
+ type Props = NativeHeaderOptions & {
5
+ headerTopInsetEnabled: boolean;
6
+ headerHeight: number;
7
+ route: Route<string>;
8
+ };
9
+ export declare function useHeaderConfig({ headerShadowVisible, headerLargeStyle, headerLargeTitle, headerLargeTitleShadowVisible, headerLargeTitleStyle, headerBackground, headerLeft, headerRight, headerShown, headerStyle, headerBlurEffect, headerTintColor, headerTitle, headerTitleAlign, headerTitleStyle, headerTransparent, headerSearchBarOptions, headerTopInsetEnabled, route, title, unstable_headerLeftItems: headerLeftItems, unstable_headerRightItems: headerRightItems, }: Props): ScreenStackHeaderConfigProps;
10
+ export {};
11
+ //# sourceMappingURL=useHeaderConfig.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useHeaderConfig.d.ts","sourceRoot":"","sources":["../../../../../src/unstable/NativeScreen/useHeaderConfig.tsx"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,KAAK,EAIX,MAAM,0BAA0B,CAAC;AAGlC,OAAO,EAML,KAAK,4BAA4B,EAKlC,MAAM,sBAAsB,CAAC;AAE9B,OAAO,KAAK,EACV,mBAAmB,EAIpB,MAAM,SAAS,CAAC;AAEjB,KAAK,KAAK,GAAG,mBAAmB,GAAG;IACjC,qBAAqB,EAAE,OAAO,CAAC;IAC/B,YAAY,EAAE,MAAM,CAAC;IACrB,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CACtB,CAAC;AA0HF,wBAAgB,eAAe,CAAC,EAC9B,mBAAmB,EACnB,gBAAgB,EAChB,gBAAgB,EAChB,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,KAAK,EACL,KAAK,EACL,wBAAwB,EAAE,eAAe,EACzC,yBAAyB,EAAE,gBAAgB,GAC5C,EAAE,KAAK,GAAG,4BAA4B,CAoPtC"}
@@ -0,0 +1,2 @@
1
+ export declare const createNativeBottomTabNavigator: typeof import('./createNativeBottomTabNavigator.native').createNativeBottomTabNavigator;
2
+ //# sourceMappingURL=createNativeBottomTabNavigator.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createNativeBottomTabNavigator.d.ts","sourceRoot":"","sources":["../../../../src/unstable/createNativeBottomTabNavigator.tsx"],"names":[],"mappings":"AAAA,eAAO,MAAM,8BAA8B,EAAE,cAAc,yCAAyC,EAAE,8BAGnG,CAAC"}
@@ -0,0 +1,16 @@
1
+ import { type NavigatorTypeBagBase, type ParamListBase, type StaticConfig, type TabNavigationState, type TypedNavigator } from '@react-navigation/native';
2
+ import type { NativeBottomTabNavigationEventMap, NativeBottomTabNavigationOptions, NativeBottomTabNavigationProp, NativeBottomTabNavigatorProps } from './types';
3
+ declare function NativeBottomTabNavigator({ id, initialRouteName, backBehavior, children, layout, screenListeners, screenOptions, screenLayout, UNSTABLE_router, UNSTABLE_routeNamesChangeBehavior, ...rest }: NativeBottomTabNavigatorProps): import("react/jsx-runtime").JSX.Element;
4
+ export declare function createNativeBottomTabNavigator<const ParamList extends ParamListBase, const NavigatorID extends string | undefined = undefined, const TypeBag extends NavigatorTypeBagBase = {
5
+ ParamList: ParamList;
6
+ NavigatorID: NavigatorID;
7
+ State: TabNavigationState<ParamList>;
8
+ ScreenOptions: NativeBottomTabNavigationOptions;
9
+ EventMap: NativeBottomTabNavigationEventMap;
10
+ NavigationList: {
11
+ [RouteName in keyof ParamList]: NativeBottomTabNavigationProp<ParamList, RouteName, NavigatorID>;
12
+ };
13
+ Navigator: typeof NativeBottomTabNavigator;
14
+ }, const Config extends StaticConfig<TypeBag> = StaticConfig<TypeBag>>(config?: Config): TypedNavigator<TypeBag, Config>;
15
+ export {};
16
+ //# sourceMappingURL=createNativeBottomTabNavigator.native.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createNativeBottomTabNavigator.native.d.ts","sourceRoot":"","sources":["../../../../src/unstable/createNativeBottomTabNavigator.native.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,oBAAoB,EACzB,KAAK,aAAa,EAElB,KAAK,YAAY,EAEjB,KAAK,kBAAkB,EAGvB,KAAK,cAAc,EAEpB,MAAM,0BAA0B,CAAC;AAIlC,OAAO,KAAK,EACV,iCAAiC,EACjC,gCAAgC,EAChC,6BAA6B,EAC7B,6BAA6B,EAC9B,MAAM,SAAS,CAAC;AAEjB,iBAAS,wBAAwB,CAAC,EAChC,EAAE,EACF,gBAAgB,EAChB,YAAY,EACZ,QAAQ,EACR,MAAM,EACN,eAAe,EACf,aAAa,EACb,YAAY,EACZ,eAAe,EACf,iCAAiC,EACjC,GAAG,IAAI,EACR,EAAE,6BAA6B,2CAyD/B;AAED,wBAAgB,8BAA8B,CAC5C,KAAK,CAAC,SAAS,SAAS,aAAa,EACrC,KAAK,CAAC,WAAW,SAAS,MAAM,GAAG,SAAS,GAAG,SAAS,EACxD,KAAK,CAAC,OAAO,SAAS,oBAAoB,GAAG;IAC3C,SAAS,EAAE,SAAS,CAAC;IACrB,WAAW,EAAE,WAAW,CAAC;IACzB,KAAK,EAAE,kBAAkB,CAAC,SAAS,CAAC,CAAC;IACrC,aAAa,EAAE,gCAAgC,CAAC;IAChD,QAAQ,EAAE,iCAAiC,CAAC;IAC5C,cAAc,EAAE;SACb,SAAS,IAAI,MAAM,SAAS,GAAG,6BAA6B,CAC3D,SAAS,EACT,SAAS,EACT,WAAW,CACZ;KACF,CAAC;IACF,SAAS,EAAE,OAAO,wBAAwB,CAAC;CAC5C,EACD,KAAK,CAAC,MAAM,SAAS,YAAY,CAAC,OAAO,CAAC,GAAG,YAAY,CAAC,OAAO,CAAC,EAClE,MAAM,CAAC,EAAE,MAAM,GAAG,cAAc,CAAC,OAAO,EAAE,MAAM,CAAC,CAElD"}
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Navigators
3
+ */
4
+ export { createNativeBottomTabNavigator } from './createNativeBottomTabNavigator';
5
+ /**
6
+ * Views
7
+ */
8
+ export { NativeBottomTabView } from './NativeBottomTabView';
9
+ /**
10
+ * Types
11
+ */
12
+ export type { NativeBottomTabBarProps, NativeBottomTabNavigationEventMap, NativeBottomTabNavigationOptions, NativeBottomTabNavigationProp, NativeBottomTabNavigatorProps, NativeBottomTabOptionsArgs, NativeBottomTabScreenProps, } from './types';
13
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/unstable/index.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,8BAA8B,EAAE,MAAM,kCAAkC,CAAC;AAElF;;GAEG;AACH,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAE5D;;GAEG;AACH,YAAY,EACV,uBAAuB,EACvB,iCAAiC,EACjC,gCAAgC,EAChC,6BAA6B,EAC7B,6BAA6B,EAC7B,0BAA0B,EAC1B,0BAA0B,GAC3B,MAAM,SAAS,CAAC"}