@react-navigation/bottom-tabs 7.0.0-rc.8 → 7.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/commonjs/TransitionConfigs/TransitionPresets.js +2 -2
- package/lib/commonjs/index.js +9 -9
- package/lib/commonjs/navigators/createBottomTabNavigator.js +10 -12
- package/lib/commonjs/navigators/createBottomTabNavigator.js.map +1 -1
- package/lib/commonjs/package.json +1 -0
- package/lib/commonjs/utils/useBottomTabBarHeight.js +1 -1
- package/lib/commonjs/views/Badge.js +6 -4
- package/lib/commonjs/views/Badge.js.map +1 -1
- package/lib/commonjs/views/BottomTabBar.js +149 -110
- package/lib/commonjs/views/BottomTabBar.js.map +1 -1
- package/lib/commonjs/views/BottomTabItem.js +99 -59
- package/lib/commonjs/views/BottomTabItem.js.map +1 -1
- package/lib/commonjs/views/BottomTabView.js +124 -100
- package/lib/commonjs/views/BottomTabView.js.map +1 -1
- package/lib/commonjs/views/ScreenFallback.js +15 -9
- package/lib/commonjs/views/ScreenFallback.js.map +1 -1
- package/lib/commonjs/views/TabBarIcon.js +59 -37
- package/lib/commonjs/views/TabBarIcon.js.map +1 -1
- package/lib/module/TransitionConfigs/SceneStyleInterpolators.js +2 -0
- package/lib/module/TransitionConfigs/SceneStyleInterpolators.js.map +1 -1
- package/lib/module/TransitionConfigs/TransitionPresets.js +4 -2
- package/lib/module/TransitionConfigs/TransitionPresets.js.map +1 -1
- package/lib/module/TransitionConfigs/TransitionSpecs.js +2 -0
- package/lib/module/TransitionConfigs/TransitionSpecs.js.map +1 -1
- package/lib/module/index.js +11 -9
- package/lib/module/index.js.map +1 -1
- package/lib/module/navigators/createBottomTabNavigator.js +12 -10
- package/lib/module/navigators/createBottomTabNavigator.js.map +1 -1
- package/lib/module/package.json +1 -0
- package/lib/module/types.js +2 -0
- package/lib/module/utils/BottomTabBarHeightCallbackContext.js +2 -0
- package/lib/module/utils/BottomTabBarHeightCallbackContext.js.map +1 -1
- package/lib/module/utils/BottomTabBarHeightContext.js +2 -0
- package/lib/module/utils/BottomTabBarHeightContext.js.map +1 -1
- package/lib/module/utils/useAnimatedHashMap.js +2 -0
- package/lib/module/utils/useAnimatedHashMap.js.map +1 -1
- package/lib/module/utils/useBottomTabBarHeight.js +3 -1
- package/lib/module/utils/useBottomTabBarHeight.js.map +1 -1
- package/lib/module/utils/useIsKeyboardShown.js +2 -0
- package/lib/module/utils/useIsKeyboardShown.js.map +1 -1
- package/lib/module/views/Badge.js +8 -4
- package/lib/module/views/Badge.js.map +1 -1
- package/lib/module/views/BottomTabBar.js +151 -110
- package/lib/module/views/BottomTabBar.js.map +1 -1
- package/lib/module/views/BottomTabItem.js +101 -59
- package/lib/module/views/BottomTabItem.js.map +1 -1
- package/lib/module/views/BottomTabView.js +126 -100
- package/lib/module/views/BottomTabView.js.map +1 -1
- package/lib/module/views/ScreenFallback.js +17 -9
- package/lib/module/views/ScreenFallback.js.map +1 -1
- package/lib/module/views/TabBarIcon.js +61 -37
- package/lib/module/views/TabBarIcon.js.map +1 -1
- package/lib/typescript/commonjs/package.json +1 -0
- package/lib/typescript/commonjs/src/TransitionConfigs/SceneStyleInterpolators.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/TransitionConfigs/TransitionPresets.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/TransitionConfigs/TransitionSpecs.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/index.d.ts.map +1 -0
- package/lib/typescript/{src → commonjs/src}/navigators/createBottomTabNavigator.d.ts +3 -4
- package/lib/typescript/commonjs/src/navigators/createBottomTabNavigator.d.ts.map +1 -0
- package/lib/typescript/{src → commonjs/src}/types.d.ts +21 -4
- package/lib/typescript/commonjs/src/types.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/utils/BottomTabBarHeightCallbackContext.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/utils/BottomTabBarHeightContext.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/utils/useAnimatedHashMap.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/utils/useBottomTabBarHeight.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/utils/useIsKeyboardShown.d.ts.map +1 -0
- package/lib/typescript/{src → commonjs/src}/views/Badge.d.ts +1 -2
- package/lib/typescript/commonjs/src/views/Badge.d.ts.map +1 -0
- package/lib/typescript/{src → commonjs/src}/views/BottomTabBar.d.ts +2 -3
- package/lib/typescript/commonjs/src/views/BottomTabBar.d.ts.map +1 -0
- package/lib/typescript/{src → commonjs/src}/views/BottomTabItem.d.ts +9 -1
- package/lib/typescript/commonjs/src/views/BottomTabItem.d.ts.map +1 -0
- package/lib/typescript/{src → commonjs/src}/views/BottomTabView.d.ts +1 -2
- package/lib/typescript/commonjs/src/views/BottomTabView.d.ts.map +1 -0
- package/lib/typescript/{src → commonjs/src}/views/ScreenFallback.d.ts +2 -2
- package/lib/typescript/commonjs/src/views/ScreenFallback.d.ts.map +1 -0
- package/lib/typescript/{src → commonjs/src}/views/TabBarIcon.d.ts +3 -2
- package/lib/typescript/commonjs/src/views/TabBarIcon.d.ts.map +1 -0
- package/lib/typescript/commonjs/tsconfig.build.tsbuildinfo +1 -0
- package/lib/typescript/module/package.json +1 -0
- package/lib/typescript/module/src/TransitionConfigs/SceneStyleInterpolators.d.ts +10 -0
- package/lib/typescript/module/src/TransitionConfigs/SceneStyleInterpolators.d.ts.map +1 -0
- package/lib/typescript/module/src/TransitionConfigs/TransitionPresets.d.ts +4 -0
- package/lib/typescript/module/src/TransitionConfigs/TransitionPresets.d.ts.map +1 -0
- package/lib/typescript/module/src/TransitionConfigs/TransitionSpecs.d.ts +4 -0
- package/lib/typescript/module/src/TransitionConfigs/TransitionSpecs.d.ts.map +1 -0
- package/lib/typescript/module/src/index.d.ts +27 -0
- package/lib/typescript/module/src/index.d.ts.map +1 -0
- package/lib/typescript/module/src/navigators/createBottomTabNavigator.d.ts +17 -0
- package/lib/typescript/module/src/navigators/createBottomTabNavigator.d.ts.map +1 -0
- package/lib/typescript/module/src/types.d.ts +326 -0
- package/lib/typescript/module/src/types.d.ts.map +1 -0
- package/lib/typescript/module/src/utils/BottomTabBarHeightCallbackContext.d.ts +3 -0
- package/lib/typescript/module/src/utils/BottomTabBarHeightCallbackContext.d.ts.map +1 -0
- package/lib/typescript/module/src/utils/BottomTabBarHeightContext.d.ts +3 -0
- package/lib/typescript/module/src/utils/BottomTabBarHeightContext.d.ts.map +1 -0
- package/lib/typescript/module/src/utils/useAnimatedHashMap.d.ts +4 -0
- package/lib/typescript/module/src/utils/useAnimatedHashMap.d.ts.map +1 -0
- package/lib/typescript/module/src/utils/useBottomTabBarHeight.d.ts +2 -0
- package/lib/typescript/module/src/utils/useBottomTabBarHeight.d.ts.map +1 -0
- package/lib/typescript/module/src/utils/useIsKeyboardShown.d.ts +2 -0
- package/lib/typescript/module/src/utils/useIsKeyboardShown.d.ts.map +1 -0
- package/lib/typescript/module/src/views/Badge.d.ts +22 -0
- package/lib/typescript/module/src/views/Badge.d.ts.map +1 -0
- package/lib/typescript/module/src/views/BottomTabBar.d.ts +22 -0
- package/lib/typescript/module/src/views/BottomTabBar.d.ts.map +1 -0
- package/lib/typescript/module/src/views/BottomTabItem.d.ts +125 -0
- package/lib/typescript/module/src/views/BottomTabItem.d.ts.map +1 -0
- package/lib/typescript/module/src/views/BottomTabView.d.ts +10 -0
- package/lib/typescript/module/src/views/BottomTabView.d.ts.map +1 -0
- package/lib/typescript/module/src/views/ScreenFallback.d.ts +17 -0
- package/lib/typescript/module/src/views/ScreenFallback.d.ts.map +1 -0
- package/lib/typescript/module/src/views/TabBarIcon.d.ts +23 -0
- package/lib/typescript/module/src/views/TabBarIcon.d.ts.map +1 -0
- package/lib/typescript/module/tsconfig.build.tsbuildinfo +1 -0
- package/package.json +41 -17
- package/src/navigators/createBottomTabNavigator.tsx +4 -7
- package/src/types.tsx +20 -4
- package/src/views/BottomTabBar.tsx +89 -47
- package/src/views/BottomTabItem.tsx +115 -31
- package/src/views/BottomTabView.tsx +22 -4
- package/src/views/TabBarIcon.tsx +55 -18
- package/lib/typescript/src/TransitionConfigs/SceneStyleInterpolators.d.ts.map +0 -1
- package/lib/typescript/src/TransitionConfigs/TransitionPresets.d.ts.map +0 -1
- package/lib/typescript/src/TransitionConfigs/TransitionSpecs.d.ts.map +0 -1
- package/lib/typescript/src/index.d.ts.map +0 -1
- package/lib/typescript/src/navigators/createBottomTabNavigator.d.ts.map +0 -1
- package/lib/typescript/src/types.d.ts.map +0 -1
- package/lib/typescript/src/utils/BottomTabBarHeightCallbackContext.d.ts.map +0 -1
- package/lib/typescript/src/utils/BottomTabBarHeightContext.d.ts.map +0 -1
- package/lib/typescript/src/utils/useAnimatedHashMap.d.ts.map +0 -1
- package/lib/typescript/src/utils/useBottomTabBarHeight.d.ts.map +0 -1
- package/lib/typescript/src/utils/useIsKeyboardShown.d.ts.map +0 -1
- package/lib/typescript/src/views/Badge.d.ts.map +0 -1
- package/lib/typescript/src/views/BottomTabBar.d.ts.map +0 -1
- package/lib/typescript/src/views/BottomTabItem.d.ts.map +0 -1
- package/lib/typescript/src/views/BottomTabView.d.ts.map +0 -1
- package/lib/typescript/src/views/ScreenFallback.d.ts.map +0 -1
- package/lib/typescript/src/views/TabBarIcon.d.ts.map +0 -1
- /package/lib/typescript/{src → commonjs/src}/TransitionConfigs/SceneStyleInterpolators.d.ts +0 -0
- /package/lib/typescript/{src → commonjs/src}/TransitionConfigs/TransitionPresets.d.ts +0 -0
- /package/lib/typescript/{src → commonjs/src}/TransitionConfigs/TransitionSpecs.d.ts +0 -0
- /package/lib/typescript/{src → commonjs/src}/index.d.ts +0 -0
- /package/lib/typescript/{src → commonjs/src}/utils/BottomTabBarHeightCallbackContext.d.ts +0 -0
- /package/lib/typescript/{src → commonjs/src}/utils/BottomTabBarHeightContext.d.ts +0 -0
- /package/lib/typescript/{src → commonjs/src}/utils/useAnimatedHashMap.d.ts +0 -0
- /package/lib/typescript/{src → commonjs/src}/utils/useBottomTabBarHeight.d.ts +0 -0
- /package/lib/typescript/{src → commonjs/src}/utils/useIsKeyboardShown.d.ts +0 -0
|
@@ -1,9 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
1
3
|
import { getLabel, Label, PlatformPressable } from '@react-navigation/elements';
|
|
2
4
|
import { useTheme } from '@react-navigation/native';
|
|
3
5
|
import Color from 'color';
|
|
4
6
|
import React from 'react';
|
|
5
7
|
import { Platform, StyleSheet, View } from 'react-native';
|
|
6
|
-
import { TabBarIcon } from
|
|
8
|
+
import { TabBarIcon } from "./TabBarIcon.js";
|
|
9
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
10
|
+
const renderButtonDefault = props => /*#__PURE__*/_jsx(PlatformPressable, {
|
|
11
|
+
...props
|
|
12
|
+
});
|
|
7
13
|
export function BottomTabItem({
|
|
8
14
|
route,
|
|
9
15
|
href,
|
|
@@ -13,16 +19,18 @@ export function BottomTabItem({
|
|
|
13
19
|
icon,
|
|
14
20
|
badge,
|
|
15
21
|
badgeStyle,
|
|
16
|
-
button =
|
|
22
|
+
button = renderButtonDefault,
|
|
17
23
|
accessibilityLabel,
|
|
18
24
|
testID,
|
|
19
25
|
onPress,
|
|
20
26
|
onLongPress,
|
|
21
27
|
horizontal,
|
|
28
|
+
compact,
|
|
29
|
+
sidebar,
|
|
22
30
|
variant,
|
|
23
31
|
activeTintColor: customActiveTintColor,
|
|
24
32
|
inactiveTintColor: customInactiveTintColor,
|
|
25
|
-
activeBackgroundColor
|
|
33
|
+
activeBackgroundColor: customActiveBackgroundColor,
|
|
26
34
|
inactiveBackgroundColor = 'transparent',
|
|
27
35
|
showLabel = true,
|
|
28
36
|
allowFontScaling,
|
|
@@ -34,15 +42,22 @@ export function BottomTabItem({
|
|
|
34
42
|
colors,
|
|
35
43
|
fonts
|
|
36
44
|
} = useTheme();
|
|
37
|
-
const activeTintColor = customActiveTintColor ===
|
|
38
|
-
const inactiveTintColor = customInactiveTintColor === undefined ? Color(colors.text).mix(Color(colors.card), 0.5).hex() : customInactiveTintColor;
|
|
45
|
+
const activeTintColor = customActiveTintColor ?? (variant === 'uikit' && sidebar && horizontal ? Color(colors.primary).isDark() ? 'white' : Color(colors.primary).darken(0.71).string() : colors.primary);
|
|
46
|
+
const inactiveTintColor = customInactiveTintColor === undefined ? variant === 'material' ? Color(colors.text).alpha(0.68).rgb().string() : Color(colors.text).mix(Color(colors.card), 0.5).hex() : customInactiveTintColor;
|
|
47
|
+
const activeBackgroundColor = customActiveBackgroundColor ?? (variant === 'material' ? Color(activeTintColor).alpha(0.12).rgb().string() : sidebar && horizontal ? colors.primary : 'transparent');
|
|
48
|
+
let labelInactiveTintColor = inactiveTintColor;
|
|
49
|
+
let iconInactiveTintColor = inactiveTintColor;
|
|
50
|
+
if (variant === 'uikit' && sidebar && horizontal && customInactiveTintColor === undefined) {
|
|
51
|
+
iconInactiveTintColor = colors.primary;
|
|
52
|
+
labelInactiveTintColor = colors.text;
|
|
53
|
+
}
|
|
39
54
|
const renderLabel = ({
|
|
40
55
|
focused
|
|
41
56
|
}) => {
|
|
42
57
|
if (showLabel === false) {
|
|
43
58
|
return null;
|
|
44
59
|
}
|
|
45
|
-
const color = focused ? activeTintColor :
|
|
60
|
+
const color = focused ? activeTintColor : labelInactiveTintColor;
|
|
46
61
|
if (typeof label !== 'string') {
|
|
47
62
|
const {
|
|
48
63
|
options
|
|
@@ -58,13 +73,14 @@ export function BottomTabItem({
|
|
|
58
73
|
children
|
|
59
74
|
});
|
|
60
75
|
}
|
|
61
|
-
return /*#__PURE__*/
|
|
62
|
-
style: [horizontal ? [styles.labelBeside, {
|
|
63
|
-
marginStart:
|
|
64
|
-
}
|
|
76
|
+
return /*#__PURE__*/_jsx(Label, {
|
|
77
|
+
style: [horizontal ? [styles.labelBeside, variant === 'material' ? styles.labelSidebarMaterial : sidebar ? styles.labelSidebarUiKit : compact ? styles.labelBesideUikitCompact : styles.labelBesideUikit, icon == null && {
|
|
78
|
+
marginStart: 0
|
|
79
|
+
}] : styles.labelBeneath, compact || variant === 'uikit' && sidebar && horizontal ? fonts.regular : fonts.medium, labelStyle],
|
|
65
80
|
allowFontScaling: allowFontScaling,
|
|
66
|
-
tintColor: color
|
|
67
|
-
|
|
81
|
+
tintColor: color,
|
|
82
|
+
children: label
|
|
83
|
+
});
|
|
68
84
|
};
|
|
69
85
|
const renderIcon = ({
|
|
70
86
|
focused
|
|
@@ -74,15 +90,16 @@ export function BottomTabItem({
|
|
|
74
90
|
}
|
|
75
91
|
const activeOpacity = focused ? 1 : 0;
|
|
76
92
|
const inactiveOpacity = focused ? 0 : 1;
|
|
77
|
-
return /*#__PURE__*/
|
|
93
|
+
return /*#__PURE__*/_jsx(TabBarIcon, {
|
|
78
94
|
route: route,
|
|
79
|
-
|
|
95
|
+
variant: variant,
|
|
96
|
+
size: compact ? 'compact' : 'regular',
|
|
80
97
|
badge: badge,
|
|
81
98
|
badgeStyle: badgeStyle,
|
|
82
99
|
activeOpacity: activeOpacity,
|
|
83
100
|
inactiveOpacity: inactiveOpacity,
|
|
84
101
|
activeTintColor: activeTintColor,
|
|
85
|
-
inactiveTintColor:
|
|
102
|
+
inactiveTintColor: iconInactiveTintColor,
|
|
86
103
|
renderIcon: icon,
|
|
87
104
|
style: iconStyle
|
|
88
105
|
});
|
|
@@ -95,44 +112,47 @@ export function BottomTabItem({
|
|
|
95
112
|
const {
|
|
96
113
|
flex
|
|
97
114
|
} = StyleSheet.flatten(style || {});
|
|
98
|
-
const borderRadius = variant === 'material' ? horizontal ? 56 : 16 : 0;
|
|
99
|
-
return /*#__PURE__*/
|
|
115
|
+
const borderRadius = variant === 'material' ? horizontal ? 56 : 16 : sidebar && horizontal ? 10 : 0;
|
|
116
|
+
return /*#__PURE__*/_jsx(View, {
|
|
100
117
|
style: [
|
|
101
118
|
// Clip ripple effect on Android
|
|
102
119
|
{
|
|
103
120
|
borderRadius,
|
|
104
121
|
overflow: variant === 'material' ? 'hidden' : 'visible'
|
|
105
|
-
}, style]
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
122
|
+
}, style],
|
|
123
|
+
children: button({
|
|
124
|
+
href,
|
|
125
|
+
onPress,
|
|
126
|
+
onLongPress,
|
|
127
|
+
testID,
|
|
128
|
+
accessibilityLabel,
|
|
129
|
+
// FIXME: accessibilityRole: 'tab' doesn't seem to work as expected on iOS
|
|
130
|
+
accessibilityRole: Platform.select({
|
|
131
|
+
ios: 'button',
|
|
132
|
+
default: 'tab'
|
|
133
|
+
}),
|
|
134
|
+
accessibilityState: {
|
|
135
|
+
selected: focused
|
|
136
|
+
},
|
|
137
|
+
// @ts-expect-error: keep for compatibility with older React Native versions
|
|
138
|
+
accessibilityStates: focused ? ['selected'] : [],
|
|
139
|
+
android_ripple: {
|
|
140
|
+
borderless: true
|
|
141
|
+
},
|
|
142
|
+
hoverEffect: variant === 'material' || sidebar && horizontal ? {
|
|
143
|
+
color: colors.text
|
|
144
|
+
} : undefined,
|
|
145
|
+
pressOpacity: 1,
|
|
146
|
+
style: [styles.tab, {
|
|
147
|
+
flex,
|
|
148
|
+
backgroundColor,
|
|
149
|
+
borderRadius
|
|
150
|
+
}, sidebar ? variant === 'material' ? horizontal ? styles.tabBarSidebarMaterial : styles.tabVerticalMaterial : horizontal ? styles.tabBarSidebarUiKit : styles.tabVerticalUiKit : variant === 'material' ? styles.tabVerticalMaterial : horizontal ? styles.tabHorizontalUiKit : styles.tabVerticalUiKit],
|
|
151
|
+
children: /*#__PURE__*/_jsxs(React.Fragment, {
|
|
152
|
+
children: [renderIcon(scene), renderLabel(scene)]
|
|
153
|
+
})
|
|
154
|
+
})
|
|
155
|
+
});
|
|
136
156
|
}
|
|
137
157
|
const styles = StyleSheet.create({
|
|
138
158
|
tab: {
|
|
@@ -140,34 +160,56 @@ const styles = StyleSheet.create({
|
|
|
140
160
|
// Roundness for iPad hover effect
|
|
141
161
|
borderRadius: 10
|
|
142
162
|
},
|
|
143
|
-
|
|
144
|
-
justifyContent: 'flex-
|
|
145
|
-
flexDirection: 'column'
|
|
163
|
+
tabVerticalUiKit: {
|
|
164
|
+
justifyContent: 'flex-start',
|
|
165
|
+
flexDirection: 'column',
|
|
166
|
+
padding: 5
|
|
146
167
|
},
|
|
147
168
|
tabVerticalMaterial: {
|
|
148
169
|
padding: 10
|
|
149
170
|
},
|
|
150
|
-
|
|
171
|
+
tabHorizontalUiKit: {
|
|
151
172
|
justifyContent: 'center',
|
|
173
|
+
alignItems: 'center',
|
|
174
|
+
flexDirection: 'row',
|
|
175
|
+
padding: 5
|
|
176
|
+
},
|
|
177
|
+
tabBarSidebarUiKit: {
|
|
178
|
+
justifyContent: 'flex-start',
|
|
179
|
+
alignItems: 'center',
|
|
180
|
+
flexDirection: 'row',
|
|
181
|
+
paddingVertical: 7,
|
|
182
|
+
paddingHorizontal: 5
|
|
183
|
+
},
|
|
184
|
+
tabBarSidebarMaterial: {
|
|
185
|
+
justifyContent: 'flex-start',
|
|
186
|
+
alignItems: 'center',
|
|
152
187
|
flexDirection: 'row',
|
|
153
|
-
paddingVertical:
|
|
188
|
+
paddingVertical: 15,
|
|
154
189
|
paddingStart: 16,
|
|
155
190
|
paddingEnd: 24
|
|
156
191
|
},
|
|
157
|
-
|
|
158
|
-
|
|
192
|
+
labelSidebarMaterial: {
|
|
193
|
+
marginStart: 12
|
|
194
|
+
},
|
|
195
|
+
labelSidebarUiKit: {
|
|
196
|
+
fontSize: 17,
|
|
197
|
+
marginStart: 10
|
|
159
198
|
},
|
|
160
199
|
labelBeneath: {
|
|
161
200
|
fontSize: 10
|
|
162
201
|
},
|
|
163
202
|
labelBeside: {
|
|
164
203
|
marginEnd: 12,
|
|
165
|
-
|
|
166
|
-
lineHeight: 24,
|
|
167
|
-
marginStart: 20
|
|
204
|
+
lineHeight: 24
|
|
168
205
|
},
|
|
169
206
|
labelBesideUikit: {
|
|
170
|
-
fontSize: 13
|
|
207
|
+
fontSize: 13,
|
|
208
|
+
marginStart: 5
|
|
209
|
+
},
|
|
210
|
+
labelBesideUikitCompact: {
|
|
211
|
+
fontSize: 12,
|
|
212
|
+
marginStart: 5
|
|
171
213
|
}
|
|
172
214
|
});
|
|
173
215
|
//# sourceMappingURL=BottomTabItem.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["getLabel","Label","PlatformPressable","useTheme","Color","React","Platform","StyleSheet","View","TabBarIcon","BottomTabItem","route","href","focused","descriptor","label","icon","badge","badgeStyle","button","
|
|
1
|
+
{"version":3,"names":["getLabel","Label","PlatformPressable","useTheme","Color","React","Platform","StyleSheet","View","TabBarIcon","jsx","_jsx","jsxs","_jsxs","renderButtonDefault","props","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","showLabel","allowFontScaling","labelStyle","iconStyle","style","colors","fonts","primary","isDark","darken","string","undefined","text","alpha","rgb","mix","card","hex","labelInactiveTintColor","iconInactiveTintColor","renderLabel","color","options","children","tabBarLabel","title","name","position","styles","labelBeside","labelSidebarMaterial","labelSidebarUiKit","labelBesideUikitCompact","labelBesideUikit","marginStart","labelBeneath","regular","medium","tintColor","renderIcon","activeOpacity","inactiveOpacity","size","scene","backgroundColor","flex","flatten","borderRadius","overflow","accessibilityRole","select","ios","default","accessibilityState","selected","accessibilityStates","android_ripple","borderless","hoverEffect","pressOpacity","tab","tabBarSidebarMaterial","tabVerticalMaterial","tabBarSidebarUiKit","tabVerticalUiKit","tabHorizontalUiKit","Fragment","create","alignItems","justifyContent","flexDirection","padding","paddingVertical","paddingHorizontal","paddingStart","paddingEnd","fontSize","marginEnd","lineHeight"],"sourceRoot":"../../../src","sources":["views/BottomTabItem.tsx"],"mappings":";;AAAA,SAASA,QAAQ,EAAEC,KAAK,EAAEC,iBAAiB,QAAQ,4BAA4B;AAC/E,SAAqBC,QAAQ,QAAQ,0BAA0B;AAC/D,OAAOC,KAAK,MAAM,OAAO;AACzB,OAAOC,KAAK,MAAM,OAAO;AACzB,SAEEC,QAAQ,EAERC,UAAU,EAEVC,IAAI,QAEC,cAAc;AAOrB,SAASC,UAAU,QAAQ,iBAAc;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AA6H1C,MAAMC,mBAAmB,GAAIC,KAA8B,iBACzDJ,IAAA,CAACT,iBAAiB;EAAA,GAAKa;AAAK,CAAG,CAChC;AAED,OAAO,SAASC,aAAaA,CAAC;EAC5BC,KAAK;EACLC,IAAI;EACJC,OAAO;EACPC,UAAU;EACVC,KAAK;EACLC,IAAI;EACJC,KAAK;EACLC,UAAU;EACVC,MAAM,GAAGX,mBAAmB;EAC5BY,kBAAkB;EAClBC,MAAM;EACNC,OAAO;EACPC,WAAW;EACXC,UAAU;EACVC,OAAO;EACPC,OAAO;EACPC,OAAO;EACPC,eAAe,EAAEC,qBAAqB;EACtCC,iBAAiB,EAAEC,uBAAuB;EAC1CC,qBAAqB,EAAEC,2BAA2B;EAClDC,uBAAuB,GAAG,aAAa;EACvCC,SAAS,GAAG,IAAI;EAChBC,gBAAgB;EAChBC,UAAU;EACVC,SAAS;EACTC;AACK,CAAC,EAAE;EACR,MAAM;IAAEC,MAAM;IAAEC;EAAM,CAAC,GAAG5C,QAAQ,CAAC,CAAC;EAEpC,MAAM+B,eAAe,GACnBC,qBAAqB,KAC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AAC;EACDT,mBAAmB,EAAE;IACnBS,OAAO,EAAE;EACX,CAAC;EACDN,kBAAkB,EAAE;IAClBI,cAAc,EAAE,QAAQ;IACxBD,UAAU,EAAE,QAAQ;IACpBE,aAAa,EAAE,KAAK;IACpBC,OAAO,EAAE;EACX,CAAC;EACDR,kBAAkB,EAAE;IAClBM,cAAc,EAAE,YAAY;IAC5BD,UAAU,EAAE,QAAQ;IACpBE,aAAa,EAAE,KAAK;IACpBE,eAAe,EAAE,CAAC;IAClBC,iBAAiB,EAAE;EACrB,CAAC;EACDZ,qBAAqB,EAAE;IACrBQ,cAAc,EAAE,YAAY;IAC5BD,UAAU,EAAE,QAAQ;IACpBE,aAAa,EAAE,KAAK;IACpBE,eAAe,EAAE,EAAE;IACnBE,YAAY,EAAE,EAAE;IAChBC,UAAU,EAAE;EACd,CAAC;EACD7C,oBAAoB,EAAE;IACpBI,WAAW,EAAE;EACf,CAAC;EACDH,iBAAiB,EAAE;IACjB6C,QAAQ,EAAE,EAAE;IACZ1C,WAAW,EAAE;EACf,CAAC;EACDC,YAAY,EAAE;IACZyC,QAAQ,EAAE;EACZ,CAAC;EACD/C,WAAW,EAAE;IACXgD,SAAS,EAAE,EAAE;IACbC,UAAU,EAAE;EACd,CAAC;EACD7C,gBAAgB,EAAE;IAChB2C,QAAQ,EAAE,EAAE;IACZ1C,WAAW,EAAE;EACf,CAAC;EACDF,uBAAuB,EAAE;IACvB4C,QAAQ,EAAE,EAAE;IACZ1C,WAAW,EAAE;EACf;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1,15 +1,17 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
2
3
|
import { getHeaderTitle, Header, SafeAreaProviderCompat, Screen } from '@react-navigation/elements';
|
|
3
4
|
import { StackActions, useLocale } from '@react-navigation/native';
|
|
4
5
|
import * as React from 'react';
|
|
5
6
|
import { Animated, Platform, StyleSheet } from 'react-native';
|
|
6
7
|
import { SafeAreaInsetsContext } from 'react-native-safe-area-context';
|
|
7
|
-
import { FadeTransition, ShiftTransition } from
|
|
8
|
-
import { BottomTabBarHeightCallbackContext } from
|
|
9
|
-
import { BottomTabBarHeightContext } from
|
|
10
|
-
import { useAnimatedHashMap } from
|
|
11
|
-
import { BottomTabBar, getTabBarHeight } from
|
|
12
|
-
import { MaybeScreen, MaybeScreenContainer } from
|
|
8
|
+
import { FadeTransition, ShiftTransition } from "../TransitionConfigs/TransitionPresets.js";
|
|
9
|
+
import { BottomTabBarHeightCallbackContext } from "../utils/BottomTabBarHeightCallbackContext.js";
|
|
10
|
+
import { BottomTabBarHeightContext } from "../utils/BottomTabBarHeightContext.js";
|
|
11
|
+
import { useAnimatedHashMap } from "../utils/useAnimatedHashMap.js";
|
|
12
|
+
import { BottomTabBar, getTabBarHeight } from "./BottomTabBar.js";
|
|
13
|
+
import { MaybeScreen, MaybeScreenContainer } from "./ScreenFallback.js";
|
|
14
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
15
|
const EPSILON = 1e-5;
|
|
14
16
|
const STATE_INACTIVE = 0;
|
|
15
17
|
const STATE_TRANSITIONING_OR_BELOW_TOP = 1;
|
|
@@ -35,17 +37,19 @@ const hasAnimation = options => {
|
|
|
35
37
|
if (animation) {
|
|
36
38
|
return animation !== 'none';
|
|
37
39
|
}
|
|
38
|
-
return
|
|
40
|
+
return Boolean(transitionSpec);
|
|
39
41
|
};
|
|
42
|
+
const renderTabBarDefault = props => /*#__PURE__*/_jsx(BottomTabBar, {
|
|
43
|
+
...props
|
|
44
|
+
});
|
|
40
45
|
export function BottomTabView(props) {
|
|
41
46
|
const {
|
|
42
|
-
tabBar =
|
|
47
|
+
tabBar = renderTabBarDefault,
|
|
43
48
|
state,
|
|
44
49
|
navigation,
|
|
45
50
|
descriptors,
|
|
46
51
|
safeAreaInsets,
|
|
47
|
-
detachInactiveScreens = Platform.OS === 'web' || Platform.OS === 'android' || Platform.OS === 'ios'
|
|
48
|
-
sceneContainerStyle
|
|
52
|
+
detachInactiveScreens = Platform.OS === 'web' || Platform.OS === 'android' || Platform.OS === 'ios'
|
|
49
53
|
} = props;
|
|
50
54
|
const focusedRouteKey = state.routes[state.index].key;
|
|
51
55
|
const {
|
|
@@ -75,6 +79,12 @@ export function BottomTabView(props) {
|
|
|
75
79
|
}
|
|
76
80
|
}
|
|
77
81
|
const animateToIndex = () => {
|
|
82
|
+
if (previousRouteKey !== focusedRouteKey) {
|
|
83
|
+
navigation.emit({
|
|
84
|
+
type: 'transitionStart',
|
|
85
|
+
target: focusedRouteKey
|
|
86
|
+
});
|
|
87
|
+
}
|
|
78
88
|
Animated.parallel(state.routes.map((route, index) => {
|
|
79
89
|
const {
|
|
80
90
|
options
|
|
@@ -102,6 +112,12 @@ export function BottomTabView(props) {
|
|
|
102
112
|
if (finished && popToTopAction) {
|
|
103
113
|
navigation.dispatch(popToTopAction);
|
|
104
114
|
}
|
|
115
|
+
if (previousRouteKey !== focusedRouteKey) {
|
|
116
|
+
navigation.emit({
|
|
117
|
+
type: 'transitionEnd',
|
|
118
|
+
target: focusedRouteKey
|
|
119
|
+
});
|
|
120
|
+
}
|
|
105
121
|
});
|
|
106
122
|
};
|
|
107
123
|
animateToIndex();
|
|
@@ -119,17 +135,19 @@ export function BottomTabView(props) {
|
|
|
119
135
|
style: descriptors[state.routes[state.index].key].options.tabBarStyle
|
|
120
136
|
}));
|
|
121
137
|
const renderTabBar = () => {
|
|
122
|
-
return /*#__PURE__*/
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
138
|
+
return /*#__PURE__*/_jsx(SafeAreaInsetsContext.Consumer, {
|
|
139
|
+
children: insets => tabBar({
|
|
140
|
+
state: state,
|
|
141
|
+
descriptors: descriptors,
|
|
142
|
+
navigation: navigation,
|
|
143
|
+
insets: {
|
|
144
|
+
top: safeAreaInsets?.top ?? insets?.top ?? 0,
|
|
145
|
+
right: safeAreaInsets?.right ?? insets?.right ?? 0,
|
|
146
|
+
bottom: safeAreaInsets?.bottom ?? insets?.bottom ?? 0,
|
|
147
|
+
left: safeAreaInsets?.left ?? insets?.left ?? 0
|
|
148
|
+
}
|
|
149
|
+
})
|
|
150
|
+
});
|
|
133
151
|
};
|
|
134
152
|
const {
|
|
135
153
|
routes
|
|
@@ -140,87 +158,95 @@ export function BottomTabView(props) {
|
|
|
140
158
|
const {
|
|
141
159
|
tabBarPosition = 'bottom'
|
|
142
160
|
} = descriptors[focusedRouteKey].options;
|
|
143
|
-
return /*#__PURE__*/
|
|
161
|
+
return /*#__PURE__*/_jsxs(SafeAreaProviderCompat, {
|
|
144
162
|
style: {
|
|
145
163
|
flexDirection: tabBarPosition === 'left' || tabBarPosition === 'right' ? tabBarPosition === 'left' && direction === 'ltr' || tabBarPosition === 'right' && direction === 'rtl' ? 'row-reverse' : 'row' : 'column'
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
hasTwoStates: hasTwoStates,
|
|
152
|
-
style: styles.screens
|
|
153
|
-
}, routes.map((route, index) => {
|
|
154
|
-
const descriptor = descriptors[route.key];
|
|
155
|
-
const {
|
|
156
|
-
lazy = true,
|
|
157
|
-
animation = 'none',
|
|
158
|
-
sceneStyleInterpolator = NAMED_TRANSITIONS_PRESETS[animation].sceneStyleInterpolator
|
|
159
|
-
} = descriptor.options;
|
|
160
|
-
const isFocused = state.index === index;
|
|
161
|
-
if (lazy && !loaded.includes(route.key) && !isFocused && !state.preloadedRouteKeys.includes(route.key)) {
|
|
162
|
-
// Don't render a lazy screen if we've never navigated to it or it wasn't preloaded
|
|
163
|
-
return null;
|
|
164
|
-
}
|
|
165
|
-
const {
|
|
166
|
-
freezeOnBlur,
|
|
167
|
-
header = ({
|
|
168
|
-
layout,
|
|
169
|
-
options
|
|
170
|
-
}) => /*#__PURE__*/React.createElement(Header, _extends({}, options, {
|
|
171
|
-
layout: layout,
|
|
172
|
-
title: getHeaderTitle(options, route.name)
|
|
173
|
-
})),
|
|
174
|
-
headerShown,
|
|
175
|
-
headerStatusBarHeight,
|
|
176
|
-
headerTransparent
|
|
177
|
-
} = descriptor.options;
|
|
178
|
-
const {
|
|
179
|
-
sceneStyle
|
|
180
|
-
} = sceneStyleInterpolator?.({
|
|
181
|
-
current: {
|
|
182
|
-
progress: tabAnims[route.key]
|
|
183
|
-
}
|
|
184
|
-
}) ?? {};
|
|
185
|
-
const animationEnabled = hasAnimation(descriptor.options);
|
|
186
|
-
const activityState = isFocused ? STATE_ON_TOP // the screen is on top after the transition
|
|
187
|
-
: animationEnabled // is animation is not enabled, immediately move to inactive state
|
|
188
|
-
? tabAnims[route.key].interpolate({
|
|
189
|
-
inputRange: [0, 1 - EPSILON, 1],
|
|
190
|
-
outputRange: [STATE_TRANSITIONING_OR_BELOW_TOP,
|
|
191
|
-
// screen visible during transition
|
|
192
|
-
STATE_TRANSITIONING_OR_BELOW_TOP, STATE_INACTIVE // the screen is detached after transition
|
|
193
|
-
],
|
|
194
|
-
extrapolate: 'extend'
|
|
195
|
-
}) : STATE_INACTIVE;
|
|
196
|
-
return /*#__PURE__*/React.createElement(MaybeScreen, {
|
|
197
|
-
key: route.key,
|
|
198
|
-
style: [StyleSheet.absoluteFill, {
|
|
199
|
-
zIndex: isFocused ? 0 : -1
|
|
200
|
-
}],
|
|
201
|
-
active: activityState,
|
|
164
|
+
},
|
|
165
|
+
children: [tabBarPosition === 'top' ? /*#__PURE__*/_jsx(BottomTabBarHeightCallbackContext.Provider, {
|
|
166
|
+
value: setTabBarHeight,
|
|
167
|
+
children: renderTabBar()
|
|
168
|
+
}) : null, /*#__PURE__*/_jsx(MaybeScreenContainer, {
|
|
202
169
|
enabled: detachInactiveScreens,
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
170
|
+
hasTwoStates: hasTwoStates,
|
|
171
|
+
style: styles.screens,
|
|
172
|
+
children: routes.map((route, index) => {
|
|
173
|
+
const descriptor = descriptors[route.key];
|
|
174
|
+
const {
|
|
175
|
+
lazy = true,
|
|
176
|
+
animation = 'none',
|
|
177
|
+
sceneStyleInterpolator = NAMED_TRANSITIONS_PRESETS[animation].sceneStyleInterpolator
|
|
178
|
+
} = descriptor.options;
|
|
179
|
+
const isFocused = state.index === index;
|
|
180
|
+
if (lazy && !loaded.includes(route.key) && !isFocused && !state.preloadedRouteKeys.includes(route.key)) {
|
|
181
|
+
// Don't render a lazy screen if we've never navigated to it or it wasn't preloaded
|
|
182
|
+
return null;
|
|
183
|
+
}
|
|
184
|
+
const {
|
|
185
|
+
freezeOnBlur,
|
|
186
|
+
header = ({
|
|
187
|
+
layout,
|
|
188
|
+
options
|
|
189
|
+
}) => /*#__PURE__*/_jsx(Header, {
|
|
190
|
+
...options,
|
|
191
|
+
layout: layout,
|
|
192
|
+
title: getHeaderTitle(options, route.name)
|
|
193
|
+
}),
|
|
194
|
+
headerShown,
|
|
195
|
+
headerStatusBarHeight,
|
|
196
|
+
headerTransparent,
|
|
197
|
+
sceneStyle: customSceneStyle
|
|
198
|
+
} = descriptor.options;
|
|
199
|
+
const {
|
|
200
|
+
sceneStyle
|
|
201
|
+
} = sceneStyleInterpolator?.({
|
|
202
|
+
current: {
|
|
203
|
+
progress: tabAnims[route.key]
|
|
204
|
+
}
|
|
205
|
+
}) ?? {};
|
|
206
|
+
const animationEnabled = hasAnimation(descriptor.options);
|
|
207
|
+
const activityState = isFocused ? STATE_ON_TOP // the screen is on top after the transition
|
|
208
|
+
: animationEnabled // is animation is not enabled, immediately move to inactive state
|
|
209
|
+
? tabAnims[route.key].interpolate({
|
|
210
|
+
inputRange: [0, 1 - EPSILON, 1],
|
|
211
|
+
outputRange: [STATE_TRANSITIONING_OR_BELOW_TOP,
|
|
212
|
+
// screen visible during transition
|
|
213
|
+
STATE_TRANSITIONING_OR_BELOW_TOP, STATE_INACTIVE // the screen is detached after transition
|
|
214
|
+
],
|
|
215
|
+
extrapolate: 'extend'
|
|
216
|
+
}) : STATE_INACTIVE;
|
|
217
|
+
return /*#__PURE__*/_jsx(MaybeScreen, {
|
|
218
|
+
style: [StyleSheet.absoluteFill, {
|
|
219
|
+
zIndex: isFocused ? 0 : -1
|
|
220
|
+
}],
|
|
221
|
+
active: activityState,
|
|
222
|
+
enabled: detachInactiveScreens,
|
|
223
|
+
freezeOnBlur: freezeOnBlur,
|
|
224
|
+
children: /*#__PURE__*/_jsx(BottomTabBarHeightContext.Provider, {
|
|
225
|
+
value: tabBarPosition === 'bottom' ? tabBarHeight : 0,
|
|
226
|
+
children: /*#__PURE__*/_jsx(Screen, {
|
|
227
|
+
focused: isFocused,
|
|
228
|
+
route: descriptor.route,
|
|
229
|
+
navigation: descriptor.navigation,
|
|
230
|
+
headerShown: headerShown,
|
|
231
|
+
headerStatusBarHeight: headerStatusBarHeight,
|
|
232
|
+
headerTransparent: headerTransparent,
|
|
233
|
+
header: header({
|
|
234
|
+
layout: dimensions,
|
|
235
|
+
route: descriptor.route,
|
|
236
|
+
navigation: descriptor.navigation,
|
|
237
|
+
options: descriptor.options
|
|
238
|
+
}),
|
|
239
|
+
style: [customSceneStyle, animationEnabled && sceneStyle],
|
|
240
|
+
children: descriptor.render()
|
|
241
|
+
})
|
|
242
|
+
})
|
|
243
|
+
}, route.key);
|
|
244
|
+
})
|
|
245
|
+
}), tabBarPosition !== 'top' ? /*#__PURE__*/_jsx(BottomTabBarHeightCallbackContext.Provider, {
|
|
246
|
+
value: setTabBarHeight,
|
|
247
|
+
children: renderTabBar()
|
|
248
|
+
}) : null]
|
|
249
|
+
});
|
|
224
250
|
}
|
|
225
251
|
const styles = StyleSheet.create({
|
|
226
252
|
screens: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["getHeaderTitle","Header","SafeAreaProviderCompat","Screen","StackActions","useLocale","React","Animated","Platform","StyleSheet","SafeAreaInsetsContext","FadeTransition","ShiftTransition","BottomTabBarHeightCallbackContext","BottomTabBarHeightContext","useAnimatedHashMap","BottomTabBar","getTabBarHeight","MaybeScreen","MaybeScreenContainer","EPSILON","STATE_INACTIVE","STATE_TRANSITIONING_OR_BELOW_TOP","STATE_ON_TOP","NAMED_TRANSITIONS_PRESETS","fade","shift","none","sceneStyleInterpolator","undefined","transitionSpec","animation","config","duration","hasAnimation","options","
|
|
1
|
+
{"version":3,"names":["getHeaderTitle","Header","SafeAreaProviderCompat","Screen","StackActions","useLocale","React","Animated","Platform","StyleSheet","SafeAreaInsetsContext","FadeTransition","ShiftTransition","BottomTabBarHeightCallbackContext","BottomTabBarHeightContext","useAnimatedHashMap","BottomTabBar","getTabBarHeight","MaybeScreen","MaybeScreenContainer","jsx","_jsx","jsxs","_jsxs","EPSILON","STATE_INACTIVE","STATE_TRANSITIONING_OR_BELOW_TOP","STATE_ON_TOP","NAMED_TRANSITIONS_PRESETS","fade","shift","none","sceneStyleInterpolator","undefined","transitionSpec","animation","config","duration","hasAnimation","options","Boolean","renderTabBarDefault","props","BottomTabView","tabBar","state","navigation","descriptors","safeAreaInsets","detachInactiveScreens","OS","focusedRouteKey","routes","index","key","direction","loaded","setLoaded","useState","includes","previousRouteKeyRef","useRef","tabAnims","useEffect","previousRouteKey","current","popToTopAction","popToTopOnBlur","prevRoute","find","route","type","popToTop","target","animateToIndex","emit","parallel","map","spec","toValue","useNativeDriver","filter","start","finished","dispatch","dimensions","initialMetrics","frame","tabBarHeight","setTabBarHeight","insets","style","tabBarStyle","renderTabBar","Consumer","children","top","right","bottom","left","hasTwoStates","some","tabBarPosition","flexDirection","Provider","value","enabled","styles","screens","descriptor","lazy","isFocused","preloadedRouteKeys","freezeOnBlur","header","layout","title","name","headerShown","headerStatusBarHeight","headerTransparent","sceneStyle","customSceneStyle","progress","animationEnabled","activityState","interpolate","inputRange","outputRange","extrapolate","absoluteFill","zIndex","active","focused","render","create","flex","overflow"],"sourceRoot":"../../../src","sources":["views/BottomTabView.tsx"],"mappings":";;AAAA,SACEA,cAAc,EACdC,MAAM,EACNC,sBAAsB,EACtBC,MAAM,QACD,4BAA4B;AACnC,SAGEC,YAAY,EAEZC,SAAS,QACJ,0BAA0B;AACjC,OAAO,KAAKC,KAAK,MAAM,OAAO;AAC9B,SAASC,QAAQ,EAAEC,QAAQ,EAAEC,UAAU,QAAQ,cAAc;AAC7D,SAASC,qBAAqB,QAAQ,gCAAgC;AAEtE,SACEC,cAAc,EACdC,eAAe,QACV,2CAAwC;AAU/C,SAASC,iCAAiC,QAAQ,+CAA4C;AAC9F,SAASC,yBAAyB,QAAQ,uCAAoC;AAC9E,SAASC,kBAAkB,QAAQ,gCAA6B;AAChE,SAASC,YAAY,EAAEC,eAAe,QAAQ,mBAAgB;AAC9D,SAASC,WAAW,EAAEC,oBAAoB,QAAQ,qBAAkB;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAQrE,MAAMC,OAAO,GAAG,IAAI;AACpB,MAAMC,cAAc,GAAG,CAAC;AACxB,MAAMC,gCAAgC,GAAG,CAAC;AAC1C,MAAMC,YAAY,GAAG,CAAC;AAEtB,MAAMC,yBAAyB,GAAG;EAChCC,IAAI,EAAElB,cAAc;EACpBmB,KAAK,EAAElB,eAAe;EACtBmB,IAAI,EAAE;IACJC,sBAAsB,EAAEC,SAAS;IACjCC,cAAc,EAAE;MACdC,SAAS,EAAE,QAAQ;MACnBC,MAAM,EAAE;QAAEC,QAAQ,EAAE;MAAE;IACxB;EACF;AACF,CAAU;AAEV,MAAMC,YAAY,GAAIC,OAAmC,IAAK;EAC5D,MAAM;IAAEJ,SAAS;IAAED;EAAe,C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