@react-navigation/bottom-tabs 8.0.0-alpha.5 → 8.0.0-alpha.51
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/createBottomTabNavigator.js +11 -34
- package/lib/module/navigators/createBottomTabNavigator.js.map +1 -1
- package/lib/module/utils/useBottomTabAnimation.js +1 -1
- package/lib/module/utils/useBottomTabAnimation.js.map +1 -1
- package/lib/module/utils/useBottomTabBarHeight.js +1 -1
- package/lib/module/utils/useBottomTabBarHeight.js.map +1 -1
- package/lib/module/utils/useIsKeyboardShown.js.map +1 -1
- package/lib/module/views/BottomTabBar.js +40 -29
- package/lib/module/views/BottomTabBar.js.map +1 -1
- package/lib/module/views/BottomTabItem.js +3 -5
- package/lib/module/views/BottomTabItem.js.map +1 -1
- package/lib/module/views/{BottomTabViewCommon.js → BottomTabView.js} +1 -1
- package/lib/module/views/BottomTabView.js.map +1 -0
- package/lib/module/views/BottomTabViewCustom.js +97 -81
- package/lib/module/views/BottomTabViewCustom.js.map +1 -1
- package/lib/module/views/BottomTabViewNativeImpl.js +339 -121
- package/lib/module/views/BottomTabViewNativeImpl.js.map +1 -1
- package/lib/module/views/Deferred.js +41 -0
- package/lib/module/views/Deferred.js.map +1 -0
- package/lib/module/views/ScreenContent.js.map +1 -1
- package/lib/module/views/TabBarIcon.js +11 -48
- package/lib/module/views/TabBarIcon.js.map +1 -1
- package/lib/typescript/src/TransitionConfigs/SceneStyleInterpolators.d.ts +1 -1
- package/lib/typescript/src/TransitionConfigs/SceneStyleInterpolators.d.ts.map +1 -1
- package/lib/typescript/src/TransitionConfigs/TransitionPresets.d.ts +1 -1
- package/lib/typescript/src/TransitionConfigs/TransitionPresets.d.ts.map +1 -1
- package/lib/typescript/src/TransitionConfigs/TransitionSpecs.d.ts +1 -1
- package/lib/typescript/src/TransitionConfigs/TransitionSpecs.d.ts.map +1 -1
- package/lib/typescript/src/index.d.ts +11 -11
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/lib/typescript/src/navigators/createBottomTabNavigator.d.ts +9 -15
- package/lib/typescript/src/navigators/createBottomTabNavigator.d.ts.map +1 -1
- package/lib/typescript/src/types.d.ts +66 -104
- package/lib/typescript/src/types.d.ts.map +1 -1
- package/lib/typescript/src/utils/BottomTabAnimationContext.d.ts +1 -1
- package/lib/typescript/src/utils/BottomTabAnimationContext.d.ts.map +1 -1
- package/lib/typescript/src/utils/useAnimatedHashMap.d.ts +1 -1
- package/lib/typescript/src/utils/useAnimatedHashMap.d.ts.map +1 -1
- package/lib/typescript/src/utils/useBottomTabAnimation.d.ts +1 -1
- package/lib/typescript/src/utils/useBottomTabAnimation.d.ts.map +1 -1
- package/lib/typescript/src/utils/useTabBarPosition.d.ts +1 -1
- package/lib/typescript/src/utils/useTabBarPosition.d.ts.map +1 -1
- package/lib/typescript/src/views/BottomTabBar.d.ts +3 -2
- package/lib/typescript/src/views/BottomTabBar.d.ts.map +1 -1
- package/lib/typescript/src/views/BottomTabItem.d.ts +20 -20
- package/lib/typescript/src/views/BottomTabItem.d.ts.map +1 -1
- package/lib/typescript/src/views/{BottomTabViewCommon.d.ts → BottomTabView.d.ts} +3 -3
- package/lib/typescript/src/views/BottomTabView.d.ts.map +1 -0
- package/lib/typescript/src/views/BottomTabViewCustom.d.ts +3 -2
- package/lib/typescript/src/views/BottomTabViewCustom.d.ts.map +1 -1
- package/lib/typescript/src/views/BottomTabViewNative.android.d.ts +1 -1
- package/lib/typescript/src/views/BottomTabViewNative.android.d.ts.map +1 -1
- package/lib/typescript/src/views/BottomTabViewNative.d.ts +1 -1
- package/lib/typescript/src/views/BottomTabViewNative.d.ts.map +1 -1
- package/lib/typescript/src/views/BottomTabViewNative.ios.d.ts +1 -1
- package/lib/typescript/src/views/BottomTabViewNative.ios.d.ts.map +1 -1
- package/lib/typescript/src/views/BottomTabViewNativeImpl.d.ts +3 -2
- package/lib/typescript/src/views/BottomTabViewNativeImpl.d.ts.map +1 -1
- package/lib/typescript/src/views/Deferred.d.ts +31 -0
- package/lib/typescript/src/views/Deferred.d.ts.map +1 -0
- package/lib/typescript/src/views/ScreenContent.d.ts +4 -4
- package/lib/typescript/src/views/ScreenContent.d.ts.map +1 -1
- package/lib/typescript/src/views/TabBarIcon.d.ts +8 -8
- package/lib/typescript/src/views/TabBarIcon.d.ts.map +1 -1
- package/package.json +22 -22
- package/src/index.tsx +2 -2
- package/src/navigators/createBottomTabNavigator.tsx +34 -102
- package/src/types.tsx +66 -112
- package/src/utils/useAnimatedHashMap.tsx +1 -1
- package/src/utils/useBottomTabAnimation.tsx +1 -1
- package/src/utils/useBottomTabBarHeight.tsx +1 -1
- package/src/utils/useIsKeyboardShown.tsx +2 -2
- package/src/views/BottomTabBar.tsx +68 -25
- package/src/views/BottomTabItem.tsx +19 -21
- package/src/views/BottomTabViewCustom.tsx +172 -143
- package/src/views/BottomTabViewNativeImpl.tsx +480 -161
- package/src/views/Deferred.tsx +57 -0
- package/src/views/ScreenContent.tsx +1 -2
- package/src/views/TabBarIcon.tsx +13 -56
- package/lib/module/views/BottomTabViewCommon.js.map +0 -1
- package/lib/typescript/src/views/BottomTabViewCommon.d.ts.map +0 -1
- /package/src/views/{BottomTabViewCommon.tsx → BottomTabView.tsx} +0 -0
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
import type { HeaderOptions, PlatformPressable } from '@react-navigation/elements';
|
|
2
|
-
import type {
|
|
1
|
+
import type { HeaderOptions, Icon, PlatformPressable } from '@react-navigation/elements';
|
|
2
|
+
import type { Screen } from '@react-navigation/elements/internal';
|
|
3
|
+
import type { DefaultNavigatorOptions, Descriptor, NavigationHelpers, NavigationProp, ParamListBase, RouteProp, TabActionHelpers, TabNavigationState, TabRouterOptions, Theme } from '@react-navigation/native';
|
|
3
4
|
import type * as React from 'react';
|
|
4
|
-
import type { Animated, ColorValue, GestureResponderEvent,
|
|
5
|
-
import type { TabBarItemLabelVisibilityMode, TabsScreenBlurEffect,
|
|
6
|
-
import type { SFSymbol } from 'sf-symbols-typescript';
|
|
5
|
+
import type { Animated, ColorValue, GestureResponderEvent, StyleProp, TextStyle, ViewStyle } from 'react-native';
|
|
6
|
+
import type { TabBarItemLabelVisibilityMode, TabsScreenBlurEffect, TabsScreenSystemItem } from 'react-native-screens';
|
|
7
7
|
export type Variant = 'uikit' | 'material';
|
|
8
8
|
export type BottomTabNavigationEventMap = {
|
|
9
9
|
/**
|
|
10
10
|
* Event which fires on tapping on the tab in the tab bar.
|
|
11
11
|
*
|
|
12
12
|
* Preventing default is only supported with `custom` implementation.
|
|
13
|
+
* Use `tabBarSelectionEnabled: false` option with `native` implementation.
|
|
13
14
|
*/
|
|
14
15
|
tabPress: {
|
|
15
16
|
data: undefined;
|
|
@@ -56,60 +57,6 @@ export type SpringKeyboardAnimationConfig = {
|
|
|
56
57
|
};
|
|
57
58
|
export type TabBarVisibilityAnimationConfig = TimingKeyboardAnimationConfig | SpringKeyboardAnimationConfig;
|
|
58
59
|
export type TabAnimationName = 'none' | 'fade' | 'shift';
|
|
59
|
-
type IconImage = {
|
|
60
|
-
/**
|
|
61
|
-
* - `image` - Use a local image as the icon.
|
|
62
|
-
*/
|
|
63
|
-
type: 'image';
|
|
64
|
-
/**
|
|
65
|
-
* Image source to use as the icon.
|
|
66
|
-
* e.g., `require('./path/to/image.png')`
|
|
67
|
-
*/
|
|
68
|
-
source: ImageSourcePropType;
|
|
69
|
-
/**
|
|
70
|
-
* Whether to apply tint color to the icon.
|
|
71
|
-
* Defaults to `true`.
|
|
72
|
-
*
|
|
73
|
-
* @platform ios
|
|
74
|
-
*/
|
|
75
|
-
tinted?: boolean;
|
|
76
|
-
};
|
|
77
|
-
type IconSfSymbol = {
|
|
78
|
-
/**
|
|
79
|
-
* - `sfSymbol` - Use an SF Symbol as the icon on iOS.
|
|
80
|
-
*/
|
|
81
|
-
type: 'sfSymbol';
|
|
82
|
-
/**
|
|
83
|
-
* Name of the SF Symbol to use as the icon.
|
|
84
|
-
*/
|
|
85
|
-
name: SFSymbol;
|
|
86
|
-
};
|
|
87
|
-
type IconMaterialSymbol = {
|
|
88
|
-
/**
|
|
89
|
-
* - `materialSymbol` - Use a Material Symbol as the icon on Android.
|
|
90
|
-
*/
|
|
91
|
-
type: 'materialSymbol';
|
|
92
|
-
} & Pick<MaterialSymbolProps, 'name' | 'variant' | 'weight'>;
|
|
93
|
-
type IconResource = {
|
|
94
|
-
/**
|
|
95
|
-
* - `resource` - Use a resource from drawables on Android and xcassets asset catalog on iOS as the icon.
|
|
96
|
-
*/
|
|
97
|
-
type: 'resource';
|
|
98
|
-
/**
|
|
99
|
-
* Name of the drawable resource or xcasset to use as the icon.
|
|
100
|
-
*/
|
|
101
|
-
name: string;
|
|
102
|
-
/**
|
|
103
|
-
* Whether to apply tint color to the icon.
|
|
104
|
-
* Only supported with custom implementation.
|
|
105
|
-
*
|
|
106
|
-
* Defaults to `true`.
|
|
107
|
-
*/
|
|
108
|
-
tinted?: boolean;
|
|
109
|
-
};
|
|
110
|
-
type IconIOS = IconSfSymbol | IconImage;
|
|
111
|
-
type IconAndroid = IconMaterialSymbol | IconResource | IconImage;
|
|
112
|
-
export type BottomTabIcon = IconIOS | IconAndroid;
|
|
113
60
|
type BottomTabCustomOptions = {
|
|
114
61
|
/**
|
|
115
62
|
* How the screen should animate when switching tabs.
|
|
@@ -144,7 +91,7 @@ type BottomTabCustomOptions = {
|
|
|
144
91
|
*
|
|
145
92
|
* Only supported with `custom` implementation.
|
|
146
93
|
*/
|
|
147
|
-
tabBarLabelPosition?: LabelPosition;
|
|
94
|
+
tabBarLabelPosition?: LabelPosition | undefined;
|
|
148
95
|
/**
|
|
149
96
|
* Whether label font should scale to respect Text Size accessibility settings.
|
|
150
97
|
*
|
|
@@ -230,7 +177,6 @@ type BottomTabCustomOptions = {
|
|
|
230
177
|
*/
|
|
231
178
|
tabBarButton?: (props: BottomTabBarButtonProps) => React.ReactNode;
|
|
232
179
|
};
|
|
233
|
-
type ScrollEdgeEffect = 'auto' | 'hard' | 'soft' | 'hidden';
|
|
234
180
|
type BottomTabNativeOptions = {
|
|
235
181
|
/**
|
|
236
182
|
* Uses iOS built-in tab bar items with standard iOS styling and localized titles.
|
|
@@ -242,7 +188,7 @@ type BottomTabNativeOptions = {
|
|
|
242
188
|
*
|
|
243
189
|
* @platform ios
|
|
244
190
|
*/
|
|
245
|
-
tabBarSystemItem?:
|
|
191
|
+
tabBarSystemItem?: TabsScreenSystemItem;
|
|
246
192
|
/**
|
|
247
193
|
* Blur effect applied to the tab bar when tab screen is selected.
|
|
248
194
|
*
|
|
@@ -322,36 +268,25 @@ type BottomTabNativeOptions = {
|
|
|
322
268
|
placement: 'regular' | 'inline';
|
|
323
269
|
}) => React.ReactNode;
|
|
324
270
|
/**
|
|
325
|
-
*
|
|
326
|
-
*
|
|
327
|
-
* for the specified edge of the ScrollView.
|
|
328
|
-
*
|
|
329
|
-
* When set in nested containers, i.e. Native Stack inside Native Bottom Tabs, or the other way around,
|
|
330
|
-
* the ScrollView will use only the innermost one's config.
|
|
271
|
+
* Specifies whether `contentInsetAdjustmentBehavior` of the `ScrollView`
|
|
272
|
+
* in the screen is automatically adjusted.
|
|
331
273
|
*
|
|
332
|
-
*
|
|
274
|
+
* `react-native`'s `ScrollView`s has `contentInsetAdjustmentBehavior` set to `never` by default.
|
|
275
|
+
* To provide a better UX, it is overridden to `automatic` - so it respects the tab bar.
|
|
276
|
+
* Otherwise, content can get hidden behind the tab bar as it's translucent on iOS 26+.
|
|
333
277
|
*
|
|
334
|
-
*
|
|
278
|
+
* Note that this only affects the `ScrollView` in first descendant chain of the screen,
|
|
279
|
+
* i.e., first view of each nested view is checked until a `ScrollView` is found.
|
|
335
280
|
*
|
|
336
|
-
*
|
|
337
|
-
* - `hard` - a scroll edge effect with a hard cutoff and dividing line,
|
|
338
|
-
* - `soft` - a soft-edged scroll edge effect,
|
|
339
|
-
* - `hidden` - no scroll edge effect.
|
|
340
|
-
*
|
|
341
|
-
* Defaults to `automatic` for each edge.
|
|
342
|
-
*
|
|
343
|
-
* Available starting from iOS 26.
|
|
281
|
+
* To disable this behavior for specific screens, set this option to `false`.
|
|
344
282
|
*
|
|
345
283
|
* Only supported with `native` implementation.
|
|
346
284
|
*
|
|
285
|
+
* Defaults to `true`.
|
|
286
|
+
*
|
|
347
287
|
* @platform ios
|
|
348
288
|
*/
|
|
349
|
-
|
|
350
|
-
bottom?: ScrollEdgeEffect;
|
|
351
|
-
left?: ScrollEdgeEffect;
|
|
352
|
-
right?: ScrollEdgeEffect;
|
|
353
|
-
top?: ScrollEdgeEffect;
|
|
354
|
-
};
|
|
289
|
+
overrideScrollViewContentInsetAdjustmentBehavior?: boolean;
|
|
355
290
|
};
|
|
356
291
|
export type BottomTabNavigationOptions = {
|
|
357
292
|
/**
|
|
@@ -387,7 +322,7 @@ export type BottomTabNavigationOptions = {
|
|
|
387
322
|
/**
|
|
388
323
|
* Style object for the tab label.
|
|
389
324
|
*/
|
|
390
|
-
tabBarLabelStyle?: Pick<TextStyle, 'fontFamily' | 'fontSize' | 'fontWeight' | 'fontStyle'>;
|
|
325
|
+
tabBarLabelStyle?: Pick<TextStyle, 'fontFamily' | 'fontSize' | 'fontWeight' | 'fontStyle' | 'color'>;
|
|
391
326
|
/**
|
|
392
327
|
* Icon to display for the tab.
|
|
393
328
|
*
|
|
@@ -397,22 +332,26 @@ export type BottomTabNavigationOptions = {
|
|
|
397
332
|
* - on all platforms with `custom` implementation
|
|
398
333
|
* - on iOS with `native` implementation
|
|
399
334
|
*
|
|
335
|
+
* With `native` implementation, `tinted` for `image` can only be disabled on iOS.
|
|
336
|
+
*
|
|
400
337
|
* A React element is only supported with `custom` implementation.
|
|
401
338
|
*/
|
|
402
|
-
tabBarIcon?:
|
|
339
|
+
tabBarIcon?: Icon | ((props: {
|
|
403
340
|
focused: boolean;
|
|
404
341
|
color: ColorValue;
|
|
405
342
|
size: number;
|
|
406
|
-
}) =>
|
|
343
|
+
}) => Icon | React.ReactNode);
|
|
407
344
|
/**
|
|
408
345
|
* Text to show in a badge on the tab icon.
|
|
409
346
|
*/
|
|
410
|
-
tabBarBadge?: number | string;
|
|
347
|
+
tabBarBadge?: number | string | undefined;
|
|
411
348
|
/**
|
|
412
349
|
* Custom style for the tab bar badge.
|
|
413
350
|
* You can specify a background color or text color here.
|
|
414
351
|
*
|
|
415
|
-
*
|
|
352
|
+
* With `native` implementation, limited customization is supported:
|
|
353
|
+
* - on iOS, you can only set the background color.
|
|
354
|
+
* - on Android, you can set both background and text colors.
|
|
416
355
|
*/
|
|
417
356
|
tabBarBadgeStyle?: {
|
|
418
357
|
backgroundColor?: ColorValue;
|
|
@@ -421,7 +360,7 @@ export type BottomTabNavigationOptions = {
|
|
|
421
360
|
/**
|
|
422
361
|
* Color for the icon and label in the active tab.
|
|
423
362
|
*/
|
|
424
|
-
tabBarActiveTintColor?: ColorValue;
|
|
363
|
+
tabBarActiveTintColor?: ColorValue | undefined;
|
|
425
364
|
/**
|
|
426
365
|
* Color for the icon and label in the inactive tabs.
|
|
427
366
|
*/
|
|
@@ -475,10 +414,29 @@ export type BottomTabNavigationOptions = {
|
|
|
475
414
|
* Only supported on iOS 18 and below.
|
|
476
415
|
*/
|
|
477
416
|
shadowColor?: ColorValue;
|
|
417
|
+
/**
|
|
418
|
+
* Whether the tab bar is visible.
|
|
419
|
+
* Setting this to `'none'` hides the tab bar.
|
|
420
|
+
*/
|
|
421
|
+
display?: 'flex' | 'none';
|
|
478
422
|
};
|
|
479
423
|
/**
|
|
480
|
-
* Whether this
|
|
481
|
-
*
|
|
424
|
+
* Whether this tab can be selected.
|
|
425
|
+
* When `false`, tapping on the tab in tab bar won't select the tab.
|
|
426
|
+
* Custom behavior can be implemented by listening to `tabPress` event.
|
|
427
|
+
*
|
|
428
|
+
* Defaults to `true`.
|
|
429
|
+
*/
|
|
430
|
+
tabBarSelectionEnabled?: boolean;
|
|
431
|
+
/**
|
|
432
|
+
* Whether this screen should render only when first accessed.
|
|
433
|
+
*
|
|
434
|
+
* Defaults to:
|
|
435
|
+
* - `true` with custom implementation.
|
|
436
|
+
* - `false` with native implementation.
|
|
437
|
+
*
|
|
438
|
+
* Enabling in native implementation may result in flicker
|
|
439
|
+
* as React renders after native transition is already finished.
|
|
482
440
|
*/
|
|
483
441
|
lazy?: boolean;
|
|
484
442
|
/**
|
|
@@ -489,7 +447,7 @@ export type BottomTabNavigationOptions = {
|
|
|
489
447
|
/**
|
|
490
448
|
* Style object for the component wrapping the screen content.
|
|
491
449
|
*/
|
|
492
|
-
sceneStyle?:
|
|
450
|
+
sceneStyle?: React.ComponentProps<typeof Screen>['style'];
|
|
493
451
|
/**
|
|
494
452
|
* Function that returns a React Element to display as a header.
|
|
495
453
|
*/
|
|
@@ -500,6 +458,18 @@ export type BottomTabNavigationOptions = {
|
|
|
500
458
|
* Defaults to `false` unless a header is provided.
|
|
501
459
|
*/
|
|
502
460
|
headerShown?: boolean;
|
|
461
|
+
/**
|
|
462
|
+
* What should happen when screens become inactive.
|
|
463
|
+
* - `pause`: Effects are cleaned up.
|
|
464
|
+
* - `none`: Screen renders normally
|
|
465
|
+
*
|
|
466
|
+
* Defaults to `pause`.
|
|
467
|
+
*
|
|
468
|
+
* If you set `lazy: false` or preload a screen,
|
|
469
|
+
* It won't be paused until after the first time it becomes focused.
|
|
470
|
+
* This makes sure that effects are run to initialize the screen.
|
|
471
|
+
*/
|
|
472
|
+
inactiveBehavior?: 'pause' | 'none';
|
|
503
473
|
} & HeaderOptions & BottomTabNativeOptions & BottomTabCustomOptions;
|
|
504
474
|
export type BottomTabDescriptor = Descriptor<BottomTabNavigationOptions, BottomTabNavigationProp<ParamListBase>, RouteProp<ParamListBase>>;
|
|
505
475
|
export type BottomTabDescriptorMap = Record<string, BottomTabDescriptor>;
|
|
@@ -526,10 +496,10 @@ export type BottomTabSceneInterpolatedStyle = {
|
|
|
526
496
|
export type BottomTabSceneStyleInterpolator = (props: BottomTabSceneInterpolationProps) => BottomTabSceneInterpolatedStyle;
|
|
527
497
|
export type TransitionSpec = {
|
|
528
498
|
animation: 'timing';
|
|
529
|
-
config: Omit<Animated.TimingAnimationConfig, 'toValue' |
|
|
499
|
+
config: Omit<Animated.TimingAnimationConfig, 'toValue' | 'useNativeDriver'>;
|
|
530
500
|
} | {
|
|
531
501
|
animation: 'spring';
|
|
532
|
-
config: Omit<Animated.SpringAnimationConfig, 'toValue' |
|
|
502
|
+
config: Omit<Animated.SpringAnimationConfig, 'toValue' | 'useNativeDriver'>;
|
|
533
503
|
};
|
|
534
504
|
export type BottomTabTransitionPreset = {
|
|
535
505
|
/**
|
|
@@ -563,14 +533,6 @@ export type BottomTabNavigationConfig = {
|
|
|
563
533
|
* Function that returns a React element to display as the tab bar.
|
|
564
534
|
*/
|
|
565
535
|
tabBar?: (props: BottomTabBarProps) => React.ReactNode;
|
|
566
|
-
/**
|
|
567
|
-
* Whether inactive screens should be detached from the view hierarchy to save memory.
|
|
568
|
-
*
|
|
569
|
-
* Defaults to `true`.
|
|
570
|
-
*
|
|
571
|
-
* Only supported with `custom` implementation.
|
|
572
|
-
*/
|
|
573
|
-
detachInactiveScreens?: boolean;
|
|
574
536
|
};
|
|
575
537
|
export type BottomTabHeaderProps = {
|
|
576
538
|
/**
|
|
@@ -592,7 +554,7 @@ export type BottomTabBarProps = {
|
|
|
592
554
|
navigation: NavigationHelpers<ParamListBase, BottomTabNavigationEventMap>;
|
|
593
555
|
};
|
|
594
556
|
export type BottomTabBarButtonProps = Omit<React.ComponentProps<typeof PlatformPressable>, 'style'> & {
|
|
595
|
-
href?: string;
|
|
557
|
+
href?: string | undefined;
|
|
596
558
|
children: React.ReactNode;
|
|
597
559
|
style?: StyleProp<ViewStyle>;
|
|
598
560
|
onPress?: (e: React.MouseEvent<HTMLAnchorElement, MouseEvent> | GestureResponderEvent) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/types.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,aAAa,EACb,iBAAiB,EAClB,MAAM,4BAA4B,CAAC;AACpC,OAAO,KAAK,EACV,uBAAuB,EACvB,UAAU,EACV,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/types.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,aAAa,EACb,IAAI,EACJ,iBAAiB,EAClB,MAAM,4BAA4B,CAAC;AACpC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,qCAAqC,CAAC;AAClE,OAAO,KAAK,EACV,uBAAuB,EACvB,UAAU,EACV,iBAAiB,EACjB,cAAc,EACd,aAAa,EACb,SAAS,EACT,gBAAgB,EAChB,kBAAkB,EAClB,gBAAgB,EAChB,KAAK,EACN,MAAM,0BAA0B,CAAC;AAClC,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AACpC,OAAO,KAAK,EACV,QAAQ,EACR,UAAU,EACV,qBAAqB,EACrB,SAAS,EACT,SAAS,EACT,SAAS,EACV,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,EACV,6BAA6B,EAC7B,oBAAoB,EACpB,oBAAoB,EACrB,MAAM,sBAAsB,CAAC;AAE9B,MAAM,MAAM,OAAO,GAAG,OAAO,GAAG,UAAU,CAAC;AAE3C,MAAM,MAAM,2BAA2B,GAAG;IACxC;;;;;OAKG;IACH,QAAQ,EAAE;QAAE,IAAI,EAAE,SAAS,CAAC;QAAC,iBAAiB,EAAE,IAAI,CAAA;KAAE,CAAC;IACvD;;;;OAIG;IACH,YAAY,EAAE;QAAE,IAAI,EAAE,SAAS,CAAA;KAAE,CAAC;IAClC;;OAEG;IACH,eAAe,EAAE;QAAE,IAAI,EAAE,SAAS,CAAA;KAAE,CAAC;IACrC;;OAEG;IACH,aAAa,EAAE;QAAE,IAAI,EAAE,SAAS,CAAA;KAAE,CAAC;CACpC,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG,aAAa,GAAG,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AQ,CAAC;IAErC;;OAEG;IACH,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,iBAAiB,KAAK,KAAK,CAAC,SAAS,CAAC;CACxD,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG;IACjC;;OAEG;IACH,OAAO,EAAE,0BAA0B,CAAC;IACpC;;OAEG;IACH,KAAK,EAAE,SAAS,CAAC,aAAa,CAAC,CAAC;IAChC;;OAEG;IACH,UAAU,EAAE,uBAAuB,CAAC,aAAa,CAAC,CAAC;CACpD,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,KAAK,EAAE,kBAAkB,CAAC,aAAa,CAAC,CAAC;IACzC,WAAW,EAAE,sBAAsB,CAAC;IACpC,UAAU,EAAE,iBAAiB,CAAC,aAAa,EAAE,2BAA2B,CAAC,CAAC;CAC3E,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG,IAAI,CACxC,KAAK,CAAC,cAAc,CAAC,OAAO,iBAAiB,CAAC,EAC9C,OAAO,CACR,GAAG;IACF,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,OAAO,CAAC,EAAE,CACR,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,iBAAiB,EAAE,UAAU,CAAC,GAAG,qBAAqB,KACvE,IAAI,CAAC;CACX,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG,uBAAuB,CAC3D,aAAa,EACb,kBAAkB,CAAC,aAAa,CAAC,EACjC,0BAA0B,EAC1B,2BAA2B,EAC3B,uBAAuB,CAAC,aAAa,CAAC,CACvC,GACC,gBAAgB,GAChB,yBAAyB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import type { BottomTabSceneInterpolationProps } from '../types';
|
|
2
|
+
import type { BottomTabSceneInterpolationProps } from '../types.js';
|
|
3
3
|
export declare const BottomTabAnimationContext: React.Context<BottomTabSceneInterpolationProps | undefined>;
|
|
4
4
|
//# sourceMappingURL=BottomTabAnimationContext.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BottomTabAnimationContext.d.ts","sourceRoot":"","sources":["../../../../src/utils/BottomTabAnimationContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"BottomTabAnimationContext.d.ts","sourceRoot":"","sources":["../../../../src/utils/BottomTabAnimationContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,aAAU,CAAC;AAEjE,eAAO,MAAM,yBAAyB,6DAE1B,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { NavigationState } from '@react-navigation/
|
|
1
|
+
import type { NavigationState } from '@react-navigation/native';
|
|
2
2
|
import { Animated } from 'react-native';
|
|
3
3
|
export declare function useAnimatedHashMap({ routes, index }: NavigationState): Record<string, Animated.Value>;
|
|
4
4
|
//# sourceMappingURL=useAnimatedHashMap.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useAnimatedHashMap.d.ts","sourceRoot":"","sources":["../../../../src/utils/useAnimatedHashMap.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"useAnimatedHashMap.d.ts","sourceRoot":"","sources":["../../../../src/utils/useAnimatedHashMap.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAEhE,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAExC,wBAAgB,kBAAkB,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,eAAe,kCAoBpE"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare function useBottomTabAnimation(): import("../types").BottomTabSceneInterpolationProps;
|
|
1
|
+
export declare function useBottomTabAnimation(): import("../types.js").BottomTabSceneInterpolationProps;
|
|
2
2
|
//# sourceMappingURL=useBottomTabAnimation.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useBottomTabAnimation.d.ts","sourceRoot":"","sources":["../../../../src/utils/useBottomTabAnimation.tsx"],"names":[],"mappings":"AAIA,wBAAgB,qBAAqB,
|
|
1
|
+
{"version":3,"file":"useBottomTabAnimation.d.ts","sourceRoot":"","sources":["../../../../src/utils/useBottomTabAnimation.tsx"],"names":[],"mappings":"AAIA,wBAAgB,qBAAqB,2DAUpC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { BottomTabNavigationOptions } from '../types';
|
|
1
|
+
import type { BottomTabNavigationOptions } from '../types.js';
|
|
2
2
|
export declare function useTabBarPosition({ tabBarPosition: customTabBarPosition, tabBarControllerMode, }: BottomTabNavigationOptions): "bottom" | "left" | "right" | "top";
|
|
3
3
|
//# sourceMappingURL=useTabBarPosition.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useTabBarPosition.d.ts","sourceRoot":"","sources":["../../../../src/utils/useTabBarPosition.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"useTabBarPosition.d.ts","sourceRoot":"","sources":["../../../../src/utils/useTabBarPosition.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAU,CAAC;AAE3D,wBAAgB,iBAAiB,CAAC,EAChC,cAAc,EAAE,oBAAoB,EACpC,oBAAoB,GACrB,EAAE,0BAA0B,uCAiC5B"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { type ParamListBase, type TabNavigationState } from '@react-navigation/native';
|
|
2
|
+
import * as React from 'react';
|
|
2
3
|
import { Animated, type StyleProp, type ViewStyle } from 'react-native';
|
|
3
4
|
import { type EdgeInsets } from 'react-native-safe-area-context';
|
|
4
|
-
import type { BottomTabBarProps, BottomTabDescriptorMap } from '../types';
|
|
5
|
+
import type { BottomTabBarProps, BottomTabDescriptorMap } from '../types.js';
|
|
5
6
|
type Props = BottomTabBarProps & {
|
|
6
7
|
style?: Animated.WithAnimatedValue<StyleProp<ViewStyle>>;
|
|
7
8
|
};
|
|
@@ -17,6 +18,6 @@ export declare const getTabBarHeight: ({ state, descriptors, dimensions, insets,
|
|
|
17
18
|
};
|
|
18
19
|
style: Animated.WithAnimatedValue<StyleProp<ViewStyle>> | undefined;
|
|
19
20
|
}) => number;
|
|
20
|
-
export declare function BottomTabBar({ state, navigation, descriptors, style }: Props):
|
|
21
|
+
export declare function BottomTabBar({ state, navigation, descriptors, style }: Props): React.JSX.Element;
|
|
21
22
|
export {};
|
|
22
23
|
//# sourceMappingURL=BottomTabBar.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BottomTabBar.d.ts","sourceRoot":"","sources":["../../../../src/views/BottomTabBar.tsx"],"names":[],"mappings":"AAKA,OAAO,EAGL,KAAK,aAAa,EAClB,KAAK,kBAAkB,EAIxB,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"BottomTabBar.d.ts","sourceRoot":"","sources":["../../../../src/views/BottomTabBar.tsx"],"names":[],"mappings":"AAKA,OAAO,EAGL,KAAK,aAAa,EAClB,KAAK,kBAAkB,EAIxB,MAAM,0BAA0B,CAAC;AAClC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EACL,QAAQ,EAGR,KAAK,SAAS,EAGd,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AACtB,OAAO,EACL,KAAK,UAAU,EAEhB,MAAM,gCAAgC,CAAC;AAExC,OAAO,KAAK,EAAE,iBAAiB,EAAE,sBAAsB,EAAE,MAAM,aAAU,CAAC;AAM1E,KAAK,KAAK,GAAG,iBAAiB,GAAG;IAC/B,KAAK,CAAC,EAAE,QAAQ,CAAC,iBAAiB,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC,CAAC;CAC1D,CAAC;AAUF,KAAK,OAAO,GAAG;IACb,KAAK,EAAE,kBAAkB,CAAC,aAAa,CAAC,CAAC;IACzC,WAAW,EAAE,sBAAsB,CAAC;CACrC,CAAC;AAoFF,eAAO,MAAM,eAAe,GAAI,oDAM7B,OAAO,GAAG;IACX,MAAM,EAAE,UAAU,CAAC;IACnB,UAAU,EAAE;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC;IAC9C,KAAK,EAAE,QAAQ,CAAC,iBAAiB,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC,GAAG,SAAS,CAAC;CACrE,WAwBA,CAAC;AAEF,wBAAgB,YAAY,CAAC,EAAE,KAAK,EAAE,UAAU,EAAE,WAAW,EAAE,KAAK,EAAE,EAAE,KAAK,qBA8W5E"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { type Route } from '@react-navigation/native';
|
|
2
|
-
import React from 'react';
|
|
2
|
+
import * as React from 'react';
|
|
3
3
|
import { type ColorValue, type GestureResponderEvent, type StyleProp, type TextStyle, type ViewStyle } from 'react-native';
|
|
4
4
|
import type { TabBarItemLabelVisibilityMode } from 'react-native-screens';
|
|
5
|
-
import type { BottomTabBarButtonProps, BottomTabDescriptor, LabelPosition } from '../types';
|
|
6
|
-
import { type TabBarIconProps } from './TabBarIcon';
|
|
5
|
+
import type { BottomTabBarButtonProps, BottomTabDescriptor, LabelPosition } from '../types.js';
|
|
6
|
+
import { type TabBarIconProps } from './TabBarIcon.js';
|
|
7
7
|
type Props = {
|
|
8
8
|
/**
|
|
9
9
|
* The route object which should be specified by the tab.
|
|
@@ -12,7 +12,7 @@ type Props = {
|
|
|
12
12
|
/**
|
|
13
13
|
* The `href` to use for the anchor tag on web
|
|
14
14
|
*/
|
|
15
|
-
href?: string;
|
|
15
|
+
href?: string | undefined;
|
|
16
16
|
/**
|
|
17
17
|
* Whether the tab is focused.
|
|
18
18
|
*/
|
|
@@ -37,23 +37,23 @@ type Props = {
|
|
|
37
37
|
/**
|
|
38
38
|
* Text to show in a badge on the tab icon.
|
|
39
39
|
*/
|
|
40
|
-
badge?: number | string;
|
|
40
|
+
badge?: number | string | undefined;
|
|
41
41
|
/**
|
|
42
42
|
* Custom style for the badge.
|
|
43
43
|
*/
|
|
44
|
-
badgeStyle?: StyleProp<TextStyle
|
|
44
|
+
badgeStyle?: StyleProp<TextStyle> | undefined;
|
|
45
45
|
/**
|
|
46
46
|
* The button for the tab. Uses a `Pressable` by default.
|
|
47
47
|
*/
|
|
48
|
-
button?: (props: BottomTabBarButtonProps) => React.ReactNode;
|
|
48
|
+
button?: ((props: BottomTabBarButtonProps) => React.ReactNode) | undefined;
|
|
49
49
|
/**
|
|
50
50
|
* The accessibility label for the tab.
|
|
51
51
|
*/
|
|
52
|
-
accessibilityLabel?: string;
|
|
52
|
+
accessibilityLabel?: string | undefined;
|
|
53
53
|
/**
|
|
54
54
|
* An unique ID for testing for the tab.
|
|
55
55
|
*/
|
|
56
|
-
testID?: string;
|
|
56
|
+
testID?: string | undefined;
|
|
57
57
|
/**
|
|
58
58
|
* Function to execute on press in React Native.
|
|
59
59
|
* On the web, this will use onClick.
|
|
@@ -84,45 +84,45 @@ type Props = {
|
|
|
84
84
|
/**
|
|
85
85
|
* Color for the icon and label when the item is active.
|
|
86
86
|
*/
|
|
87
|
-
activeTintColor?: ColorValue;
|
|
87
|
+
activeTintColor?: ColorValue | undefined;
|
|
88
88
|
/**
|
|
89
89
|
* Color for the icon and label when the item is inactive.
|
|
90
90
|
*/
|
|
91
|
-
inactiveTintColor?: ColorValue;
|
|
91
|
+
inactiveTintColor?: ColorValue | undefined;
|
|
92
92
|
/**
|
|
93
93
|
* Background color for item when its active.
|
|
94
94
|
*/
|
|
95
|
-
activeBackgroundColor?: ColorValue;
|
|
95
|
+
activeBackgroundColor?: ColorValue | undefined;
|
|
96
96
|
/**
|
|
97
97
|
* Background color for item when its inactive.
|
|
98
98
|
*/
|
|
99
|
-
inactiveBackgroundColor?: ColorValue;
|
|
99
|
+
inactiveBackgroundColor?: ColorValue | undefined;
|
|
100
100
|
/**
|
|
101
101
|
* Color of tab bar item's ripple effect.
|
|
102
102
|
*/
|
|
103
|
-
rippleColor?: ColorValue;
|
|
103
|
+
rippleColor?: ColorValue | undefined;
|
|
104
104
|
/**
|
|
105
105
|
* Label visibility mode for the tab bar item.
|
|
106
106
|
*/
|
|
107
|
-
labelVisibilityMode?: TabBarItemLabelVisibilityMode;
|
|
107
|
+
labelVisibilityMode?: TabBarItemLabelVisibilityMode | undefined;
|
|
108
108
|
/**
|
|
109
109
|
* Whether to allow scaling the font for the label for accessibility purposes.
|
|
110
110
|
* Defaults to `false` on iOS 13+ where it uses `largeContentTitle`.
|
|
111
111
|
*/
|
|
112
|
-
allowFontScaling?: boolean;
|
|
112
|
+
allowFontScaling?: boolean | undefined;
|
|
113
113
|
/**
|
|
114
114
|
* Style object for the label element.
|
|
115
115
|
*/
|
|
116
|
-
labelStyle?: StyleProp<TextStyle
|
|
116
|
+
labelStyle?: StyleProp<TextStyle> | undefined;
|
|
117
117
|
/**
|
|
118
118
|
* Style object for the icon element.
|
|
119
119
|
*/
|
|
120
|
-
iconStyle?: StyleProp<ViewStyle
|
|
120
|
+
iconStyle?: StyleProp<ViewStyle> | undefined;
|
|
121
121
|
/**
|
|
122
122
|
* Style object for the wrapper element.
|
|
123
123
|
*/
|
|
124
|
-
style?: StyleProp<ViewStyle
|
|
124
|
+
style?: StyleProp<ViewStyle> | undefined;
|
|
125
125
|
};
|
|
126
|
-
export declare function BottomTabItem({ route, href, focused, descriptor, label, icon, badge, badgeStyle, button, accessibilityLabel, testID, onPress, onLongPress, horizontal, compact, sidebar, variant, activeTintColor: customActiveTintColor, inactiveTintColor: customInactiveTintColor, activeBackgroundColor: customActiveBackgroundColor, inactiveBackgroundColor, rippleColor, labelVisibilityMode, allowFontScaling, labelStyle, iconStyle, style, }: Props):
|
|
126
|
+
export declare function BottomTabItem({ route, href, focused, descriptor, label, icon, badge, badgeStyle, button, accessibilityLabel, testID, onPress, onLongPress, horizontal, compact, sidebar, variant, activeTintColor: customActiveTintColor, inactiveTintColor: customInactiveTintColor, activeBackgroundColor: customActiveBackgroundColor, inactiveBackgroundColor, rippleColor, labelVisibilityMode, allowFontScaling, labelStyle, iconStyle, style, }: Props): React.JSX.Element;
|
|
127
127
|
export {};
|
|
128
128
|
//# sourceMappingURL=BottomTabItem.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BottomTabItem.d.ts","sourceRoot":"","sources":["../../../../src/views/BottomTabItem.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,KAAK,EAAY,MAAM,0BAA0B,CAAC;AAChE,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"BottomTabItem.d.ts","sourceRoot":"","sources":["../../../../src/views/BottomTabItem.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,KAAK,EAAY,MAAM,0BAA0B,CAAC;AAChE,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EACL,KAAK,UAAU,EACf,KAAK,qBAAqB,EAE1B,KAAK,SAAS,EAEd,KAAK,SAAS,EAEd,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,sBAAsB,CAAC;AAE1E,OAAO,KAAK,EACV,uBAAuB,EACvB,mBAAmB,EACnB,aAAa,EACd,MAAM,aAAU,CAAC;AAClB,OAAO,EAAc,KAAK,eAAe,EAAE,MAAM,iBAAc,CAAC;AAEhE,KAAK,KAAK,GA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'@react-navigation/native';
|
|
2
|
-
import type { BottomTabDescriptorMap, BottomTabNavigationConfig, BottomTabNavigationHelpers } from '../types';
|
|
2
|
+
import type { BottomTabDescriptorMap, BottomTabNavigationConfig, BottomTabNavigationHelpers } from '../types.js';
|
|
3
3
|
type Props = BottomTabNavigationConfig & {
|
|
4
4
|
state: TabNavigationState<ParamListBase>;
|
|
5
5
|
navigation: BottomTabNavigationHelpers;
|
|
6
6
|
descriptors: BottomTabDescriptorMap;
|
|
7
7
|
};
|
|
8
|
-
export declare function BottomTabView(props: Props): import("react
|
|
8
|
+
export declare function BottomTabView(props: Props): import("react").JSX.Element;
|
|
9
9
|
export {};
|
|
10
|
-
//# sourceMappingURL=
|
|
10
|
+
//# sourceMappingURL=BottomTabView.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BottomTabView.d.ts","sourceRoot":"","sources":["../../../../src/views/BottomTabView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,aAAa,EACb,kBAAkB,EACnB,MAAM,0BAA0B,CAAC;AAElC,OAAO,KAAK,EACV,sBAAsB,EACtB,yBAAyB,EACzB,0BAA0B,EAC3B,MAAM,aAAU,CAAC;AAIlB,KAAK,KAAK,GAAG,yBAAyB,GAAG;IACvC,KAAK,EAAE,kBAAkB,CAAC,aAAa,CAAC,CAAC;IACzC,UAAU,EAAE,0BAA0B,CAAC;IACvC,WAAW,EAAE,sBAAsB,CAAC;CACrC,CAAC;AAEF,wBAAgB,aAAa,CAAC,KAAK,EAAE,KAAK,+BAMzC"}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { type ParamListBase, type TabNavigationState } from '@react-navigation/native';
|
|
2
|
-
import
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import type { BottomTabDescriptorMap, BottomTabNavigationConfig, BottomTabNavigationHelpers } from '../types.js';
|
|
3
4
|
type Props = BottomTabNavigationConfig & {
|
|
4
5
|
state: TabNavigationState<ParamListBase>;
|
|
5
6
|
navigation: BottomTabNavigationHelpers;
|
|
6
7
|
descriptors: BottomTabDescriptorMap;
|
|
7
8
|
};
|
|
8
|
-
export declare function BottomTabViewCustom({ tabBar, state, navigation, descriptors,
|
|
9
|
+
export declare function BottomTabViewCustom({ tabBar, state, navigation, descriptors, }: Props): React.JSX.Element;
|
|
9
10
|
export {};
|
|
10
11
|
//# sourceMappingURL=BottomTabViewCustom.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BottomTabViewCustom.d.ts","sourceRoot":"","sources":["../../../../src/views/BottomTabViewCustom.tsx"],"names":[],"mappings":"AAKA,OAAO,
|
|
1
|
+
{"version":3,"file":"BottomTabViewCustom.d.ts","sourceRoot":"","sources":["../../../../src/views/BottomTabViewCustom.tsx"],"names":[],"mappings":"AAKA,OAAO,EACL,KAAK,aAAa,EAElB,KAAK,kBAAkB,EACxB,MAAM,0BAA0B,CAAC;AAClC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAa/B,OAAO,KAAK,EAEV,sBAAsB,EACtB,yBAAyB,EACzB,0BAA0B,EAG3B,MAAM,aAAU,CAAC;AAUlB,KAAK,KAAK,GAAG,yBAAyB,GAAG;IACvC,KAAK,EAAE,kBAAkB,CAAC,aAAa,CAAC,CAAC;IACzC,UAAU,EAAE,0BAA0B,CAAC;IACvC,WAAW,EAAE,sBAAsB,CAAC;CACrC,CAAC;AA8BF,wBAAgB,mBAAmB,CAAC,EAClC,MAA4B,EAC5B,KAAK,EACL,UAAU,EACV,WAAW,GACZ,EAAE,KAAK,qBA4RP"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './BottomTabViewNativeImpl';
|
|
1
|
+
export * from './BottomTabViewNativeImpl.js';
|
|
2
2
|
//# sourceMappingURL=BottomTabViewNative.android.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BottomTabViewNative.android.d.ts","sourceRoot":"","sources":["../../../../src/views/BottomTabViewNative.android.tsx"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"BottomTabViewNative.android.d.ts","sourceRoot":"","sources":["../../../../src/views/BottomTabViewNative.android.tsx"],"names":[],"mappings":"AAAA,cAAc,8BAA2B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BottomTabViewNative.d.ts","sourceRoot":"","sources":["../../../../src/views/BottomTabViewNative.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"BottomTabViewNative.d.ts","sourceRoot":"","sources":["../../../../src/views/BottomTabViewNative.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAAuB,CAAC;AAE5D,OAAO,EAAE,mBAAmB,IAAI,mBAAmB,EAAE,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './BottomTabViewNativeImpl';
|
|
1
|
+
export * from './BottomTabViewNativeImpl.js';
|
|
2
2
|
//# sourceMappingURL=BottomTabViewNative.ios.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BottomTabViewNative.ios.d.ts","sourceRoot":"","sources":["../../../../src/views/BottomTabViewNative.ios.tsx"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"BottomTabViewNative.ios.d.ts","sourceRoot":"","sources":["../../../../src/views/BottomTabViewNative.ios.tsx"],"names":[],"mappings":"AAAA,cAAc,8BAA2B,CAAC"}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { type ParamListBase, type TabNavigationState } from '@react-navigation/native';
|
|
2
|
-
import
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import type { BottomTabDescriptorMap, BottomTabNavigationConfig, BottomTabNavigationHelpers } from '../types.js';
|
|
3
4
|
type Props = BottomTabNavigationConfig & {
|
|
4
5
|
state: TabNavigationState<ParamListBase>;
|
|
5
6
|
navigation: BottomTabNavigationHelpers;
|
|
6
7
|
descriptors: BottomTabDescriptorMap;
|
|
7
8
|
};
|
|
8
|
-
export declare function BottomTabViewNative({ state, navigation, descriptors, tabBar, }: Props):
|
|
9
|
+
export declare function BottomTabViewNative({ state, navigation, descriptors, tabBar, }: Props): React.JSX.Element;
|
|
9
10
|
export {};
|
|
10
11
|
//# sourceMappingURL=BottomTabViewNativeImpl.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BottomTabViewNativeImpl.d.ts","sourceRoot":"","sources":["../../../../src/views/BottomTabViewNativeImpl.tsx"],"names":[],"mappings":"AAMA,OAAO,EAIL,KAAK,aAAa,EAGlB,KAAK,kBAAkB,EAExB,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"BottomTabViewNativeImpl.d.ts","sourceRoot":"","sources":["../../../../src/views/BottomTabViewNativeImpl.tsx"],"names":[],"mappings":"AAMA,OAAO,EAIL,KAAK,aAAa,EAGlB,KAAK,kBAAkB,EAExB,MAAM,0BAA0B,CAAC;AAClC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAqB/B,OAAO,KAAK,EACV,sBAAsB,EACtB,yBAAyB,EACzB,0BAA0B,EAE3B,MAAM,aAAU,CAAC;AAOlB,KAAK,KAAK,GAAG,yBAAyB,GAAG;IACvC,KAAK,EAAE,kBAAkB,CAAC,aAAa,CAAC,CAAC;IACzC,UAAU,EAAE,0BAA0B,CAAC;IACvC,WAAW,EAAE,sBAAsB,CAAC;CACrC,CAAC;AAoEF,wBAAgB,mBAAmB,CAAC,EAClC,KAAK,EACL,UAAU,EACV,WAAW,EACX,MAAM,GACP,EAAE,KAAK,qBA0jBP"}
|