@react-navigation/bottom-tabs 7.3.9 → 7.3.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/module/views/BottomTabBar.js +1 -1
- package/lib/module/views/BottomTabBar.js.map +1 -1
- package/lib/module/views/BottomTabItem.js +11 -15
- package/lib/module/views/BottomTabItem.js.map +1 -1
- package/lib/typescript/src/types.d.ts +3 -3
- package/lib/typescript/src/types.d.ts.map +1 -1
- package/lib/typescript/src/views/BottomTabBar.d.ts.map +1 -1
- package/lib/typescript/src/views/BottomTabItem.d.ts.map +1 -1
- package/lib/typescript/src/views/ScreenFallback.d.ts.map +1 -1
- package/package.json +20 -18
- package/src/types.tsx +5 -3
- package/src/views/BottomTabBar.tsx +1 -1
- package/src/views/BottomTabItem.tsx +11 -13
- package/lib/commonjs/TransitionConfigs/SceneStyleInterpolators.js +0 -45
- package/lib/commonjs/TransitionConfigs/SceneStyleInterpolators.js.map +0 -1
- package/lib/commonjs/TransitionConfigs/TransitionPresets.js +0 -17
- package/lib/commonjs/TransitionConfigs/TransitionPresets.js.map +0 -1
- package/lib/commonjs/TransitionConfigs/TransitionSpecs.js +0 -22
- package/lib/commonjs/TransitionConfigs/TransitionSpecs.js.map +0 -1
- package/lib/commonjs/index.js +0 -57
- package/lib/commonjs/index.js.map +0 -1
- package/lib/commonjs/navigators/createBottomTabNavigator.js +0 -50
- package/lib/commonjs/navigators/createBottomTabNavigator.js.map +0 -1
- package/lib/commonjs/package.json +0 -1
- package/lib/commonjs/types.js +0 -6
- package/lib/commonjs/types.js.map +0 -1
- package/lib/commonjs/utils/BottomTabBarHeightCallbackContext.js +0 -11
- package/lib/commonjs/utils/BottomTabBarHeightCallbackContext.js.map +0 -1
- package/lib/commonjs/utils/BottomTabBarHeightContext.js +0 -11
- package/lib/commonjs/utils/BottomTabBarHeightContext.js.map +0 -1
- package/lib/commonjs/utils/useAnimatedHashMap.js +0 -29
- package/lib/commonjs/utils/useAnimatedHashMap.js.map +0 -1
- package/lib/commonjs/utils/useBottomTabBarHeight.js +0 -18
- package/lib/commonjs/utils/useBottomTabBarHeight.js.map +0 -1
- package/lib/commonjs/utils/useIsKeyboardShown.js +0 -28
- package/lib/commonjs/utils/useIsKeyboardShown.js.map +0 -1
- package/lib/commonjs/views/Badge.js +0 -92
- package/lib/commonjs/views/Badge.js.map +0 -1
- package/lib/commonjs/views/BottomTabBar.js +0 -376
- package/lib/commonjs/views/BottomTabBar.js.map +0 -1
- package/lib/commonjs/views/BottomTabItem.js +0 -227
- package/lib/commonjs/views/BottomTabItem.js.map +0 -1
- package/lib/commonjs/views/BottomTabView.js +0 -266
- package/lib/commonjs/views/BottomTabView.js.map +0 -1
- package/lib/commonjs/views/ScreenFallback.js +0 -50
- package/lib/commonjs/views/ScreenFallback.js.map +0 -1
- package/lib/commonjs/views/TabBarIcon.js +0 -102
- package/lib/commonjs/views/TabBarIcon.js.map +0 -1
|
@@ -1,376 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.BottomTabBar = BottomTabBar;
|
|
7
|
-
exports.getTabBarHeight = void 0;
|
|
8
|
-
var _elements = require("@react-navigation/elements");
|
|
9
|
-
var _native = require("@react-navigation/native");
|
|
10
|
-
var _react = _interopRequireDefault(require("react"));
|
|
11
|
-
var _reactNative = require("react-native");
|
|
12
|
-
var _reactNativeSafeAreaContext = require("react-native-safe-area-context");
|
|
13
|
-
var _BottomTabBarHeightCallbackContext = require("../utils/BottomTabBarHeightCallbackContext.js");
|
|
14
|
-
var _useIsKeyboardShown = require("../utils/useIsKeyboardShown.js");
|
|
15
|
-
var _BottomTabItem = require("./BottomTabItem.js");
|
|
16
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
17
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
18
|
-
const TABBAR_HEIGHT_UIKIT = 49;
|
|
19
|
-
const TABBAR_HEIGHT_UIKIT_COMPACT = 32;
|
|
20
|
-
const SPACING_UIKIT = 15;
|
|
21
|
-
const SPACING_MATERIAL = 12;
|
|
22
|
-
const DEFAULT_MAX_TAB_ITEM_WIDTH = 125;
|
|
23
|
-
const useNativeDriver = _reactNative.Platform.OS !== 'web';
|
|
24
|
-
const shouldUseHorizontalLabels = ({
|
|
25
|
-
state,
|
|
26
|
-
descriptors,
|
|
27
|
-
dimensions
|
|
28
|
-
}) => {
|
|
29
|
-
const {
|
|
30
|
-
tabBarLabelPosition
|
|
31
|
-
} = descriptors[state.routes[state.index].key].options;
|
|
32
|
-
if (tabBarLabelPosition) {
|
|
33
|
-
switch (tabBarLabelPosition) {
|
|
34
|
-
case 'beside-icon':
|
|
35
|
-
return true;
|
|
36
|
-
case 'below-icon':
|
|
37
|
-
return false;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
if (dimensions.width >= 768) {
|
|
41
|
-
// Screen size matches a tablet
|
|
42
|
-
const maxTabWidth = state.routes.reduce((acc, route) => {
|
|
43
|
-
const {
|
|
44
|
-
tabBarItemStyle
|
|
45
|
-
} = descriptors[route.key].options;
|
|
46
|
-
const flattenedStyle = _reactNative.StyleSheet.flatten(tabBarItemStyle);
|
|
47
|
-
if (flattenedStyle) {
|
|
48
|
-
if (typeof flattenedStyle.width === 'number') {
|
|
49
|
-
return acc + flattenedStyle.width;
|
|
50
|
-
} else if (typeof flattenedStyle.maxWidth === 'number') {
|
|
51
|
-
return acc + flattenedStyle.maxWidth;
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
return acc + DEFAULT_MAX_TAB_ITEM_WIDTH;
|
|
55
|
-
}, 0);
|
|
56
|
-
return maxTabWidth <= dimensions.width;
|
|
57
|
-
} else {
|
|
58
|
-
return dimensions.width > dimensions.height;
|
|
59
|
-
}
|
|
60
|
-
};
|
|
61
|
-
const isCompact = ({
|
|
62
|
-
state,
|
|
63
|
-
descriptors,
|
|
64
|
-
dimensions
|
|
65
|
-
}) => {
|
|
66
|
-
const {
|
|
67
|
-
tabBarPosition,
|
|
68
|
-
tabBarVariant
|
|
69
|
-
} = descriptors[state.routes[state.index].key].options;
|
|
70
|
-
if (tabBarPosition === 'left' || tabBarPosition === 'right' || tabBarVariant === 'material') {
|
|
71
|
-
return false;
|
|
72
|
-
}
|
|
73
|
-
const isLandscape = dimensions.width > dimensions.height;
|
|
74
|
-
const horizontalLabels = shouldUseHorizontalLabels({
|
|
75
|
-
state,
|
|
76
|
-
descriptors,
|
|
77
|
-
dimensions
|
|
78
|
-
});
|
|
79
|
-
if (_reactNative.Platform.OS === 'ios' && !_reactNative.Platform.isPad && isLandscape && horizontalLabels) {
|
|
80
|
-
return true;
|
|
81
|
-
}
|
|
82
|
-
return false;
|
|
83
|
-
};
|
|
84
|
-
const getTabBarHeight = ({
|
|
85
|
-
state,
|
|
86
|
-
descriptors,
|
|
87
|
-
dimensions,
|
|
88
|
-
insets,
|
|
89
|
-
style
|
|
90
|
-
}) => {
|
|
91
|
-
const {
|
|
92
|
-
tabBarPosition
|
|
93
|
-
} = descriptors[state.routes[state.index].key].options;
|
|
94
|
-
const flattenedStyle = _reactNative.StyleSheet.flatten(style);
|
|
95
|
-
const customHeight = flattenedStyle && 'height' in flattenedStyle ? flattenedStyle.height : undefined;
|
|
96
|
-
if (typeof customHeight === 'number') {
|
|
97
|
-
return customHeight;
|
|
98
|
-
}
|
|
99
|
-
const inset = insets[tabBarPosition === 'top' ? 'top' : 'bottom'];
|
|
100
|
-
if (isCompact({
|
|
101
|
-
state,
|
|
102
|
-
descriptors,
|
|
103
|
-
dimensions
|
|
104
|
-
})) {
|
|
105
|
-
return TABBAR_HEIGHT_UIKIT_COMPACT + inset;
|
|
106
|
-
}
|
|
107
|
-
return TABBAR_HEIGHT_UIKIT + inset;
|
|
108
|
-
};
|
|
109
|
-
exports.getTabBarHeight = getTabBarHeight;
|
|
110
|
-
function BottomTabBar({
|
|
111
|
-
state,
|
|
112
|
-
navigation,
|
|
113
|
-
descriptors,
|
|
114
|
-
insets,
|
|
115
|
-
style
|
|
116
|
-
}) {
|
|
117
|
-
const {
|
|
118
|
-
colors
|
|
119
|
-
} = (0, _native.useTheme)();
|
|
120
|
-
const {
|
|
121
|
-
direction
|
|
122
|
-
} = (0, _native.useLocale)();
|
|
123
|
-
const {
|
|
124
|
-
buildHref
|
|
125
|
-
} = (0, _native.useLinkBuilder)();
|
|
126
|
-
const focusedRoute = state.routes[state.index];
|
|
127
|
-
const focusedDescriptor = descriptors[focusedRoute.key];
|
|
128
|
-
const focusedOptions = focusedDescriptor.options;
|
|
129
|
-
const {
|
|
130
|
-
tabBarPosition = 'bottom',
|
|
131
|
-
tabBarShowLabel,
|
|
132
|
-
tabBarLabelPosition,
|
|
133
|
-
tabBarHideOnKeyboard = false,
|
|
134
|
-
tabBarVisibilityAnimationConfig,
|
|
135
|
-
tabBarVariant = 'uikit',
|
|
136
|
-
tabBarStyle,
|
|
137
|
-
tabBarBackground,
|
|
138
|
-
tabBarActiveTintColor,
|
|
139
|
-
tabBarInactiveTintColor,
|
|
140
|
-
tabBarActiveBackgroundColor,
|
|
141
|
-
tabBarInactiveBackgroundColor
|
|
142
|
-
} = focusedOptions;
|
|
143
|
-
if (tabBarVariant === 'material' && tabBarPosition !== 'left' && tabBarPosition !== 'right') {
|
|
144
|
-
throw new Error("The 'material' variant for tab bar is only supported when 'tabBarPosition' is set to 'left' or 'right'.");
|
|
145
|
-
}
|
|
146
|
-
if (tabBarLabelPosition === 'below-icon' && tabBarVariant === 'uikit' && (tabBarPosition === 'left' || tabBarPosition === 'right')) {
|
|
147
|
-
throw new Error("The 'below-icon' label position for tab bar is only supported when 'tabBarPosition' is set to 'top' or 'bottom' when using the 'uikit' variant.");
|
|
148
|
-
}
|
|
149
|
-
const dimensions = (0, _reactNativeSafeAreaContext.useSafeAreaFrame)();
|
|
150
|
-
const isKeyboardShown = (0, _useIsKeyboardShown.useIsKeyboardShown)();
|
|
151
|
-
const onHeightChange = _react.default.useContext(_BottomTabBarHeightCallbackContext.BottomTabBarHeightCallbackContext);
|
|
152
|
-
const shouldShowTabBar = !(tabBarHideOnKeyboard && isKeyboardShown);
|
|
153
|
-
const visibilityAnimationConfigRef = _react.default.useRef(tabBarVisibilityAnimationConfig);
|
|
154
|
-
_react.default.useEffect(() => {
|
|
155
|
-
visibilityAnimationConfigRef.current = tabBarVisibilityAnimationConfig;
|
|
156
|
-
});
|
|
157
|
-
const [isTabBarHidden, setIsTabBarHidden] = _react.default.useState(!shouldShowTabBar);
|
|
158
|
-
const [visible] = _react.default.useState(() => new _reactNative.Animated.Value(shouldShowTabBar ? 1 : 0));
|
|
159
|
-
_react.default.useEffect(() => {
|
|
160
|
-
const visibilityAnimationConfig = visibilityAnimationConfigRef.current;
|
|
161
|
-
if (shouldShowTabBar) {
|
|
162
|
-
const animation = visibilityAnimationConfig?.show?.animation === 'spring' ? _reactNative.Animated.spring : _reactNative.Animated.timing;
|
|
163
|
-
animation(visible, {
|
|
164
|
-
toValue: 1,
|
|
165
|
-
useNativeDriver,
|
|
166
|
-
duration: 250,
|
|
167
|
-
...visibilityAnimationConfig?.show?.config
|
|
168
|
-
}).start(({
|
|
169
|
-
finished
|
|
170
|
-
}) => {
|
|
171
|
-
if (finished) {
|
|
172
|
-
setIsTabBarHidden(false);
|
|
173
|
-
}
|
|
174
|
-
});
|
|
175
|
-
} else {
|
|
176
|
-
// eslint-disable-next-line @eslint-react/hooks-extra/no-direct-set-state-in-use-effect
|
|
177
|
-
setIsTabBarHidden(true);
|
|
178
|
-
const animation = visibilityAnimationConfig?.hide?.animation === 'spring' ? _reactNative.Animated.spring : _reactNative.Animated.timing;
|
|
179
|
-
animation(visible, {
|
|
180
|
-
toValue: 0,
|
|
181
|
-
useNativeDriver,
|
|
182
|
-
duration: 200,
|
|
183
|
-
...visibilityAnimationConfig?.hide?.config
|
|
184
|
-
}).start();
|
|
185
|
-
}
|
|
186
|
-
return () => visible.stopAnimation();
|
|
187
|
-
}, [visible, shouldShowTabBar]);
|
|
188
|
-
const [layout, setLayout] = _react.default.useState({
|
|
189
|
-
height: 0
|
|
190
|
-
});
|
|
191
|
-
const handleLayout = e => {
|
|
192
|
-
const {
|
|
193
|
-
height
|
|
194
|
-
} = e.nativeEvent.layout;
|
|
195
|
-
onHeightChange?.(height);
|
|
196
|
-
setLayout(layout => {
|
|
197
|
-
if (height === layout.height) {
|
|
198
|
-
return layout;
|
|
199
|
-
} else {
|
|
200
|
-
return {
|
|
201
|
-
height
|
|
202
|
-
};
|
|
203
|
-
}
|
|
204
|
-
});
|
|
205
|
-
};
|
|
206
|
-
const {
|
|
207
|
-
routes
|
|
208
|
-
} = state;
|
|
209
|
-
const tabBarHeight = getTabBarHeight({
|
|
210
|
-
state,
|
|
211
|
-
descriptors,
|
|
212
|
-
insets,
|
|
213
|
-
dimensions,
|
|
214
|
-
style: [tabBarStyle, style]
|
|
215
|
-
});
|
|
216
|
-
const hasHorizontalLabels = shouldUseHorizontalLabels({
|
|
217
|
-
state,
|
|
218
|
-
descriptors,
|
|
219
|
-
dimensions
|
|
220
|
-
});
|
|
221
|
-
const compact = isCompact({
|
|
222
|
-
state,
|
|
223
|
-
descriptors,
|
|
224
|
-
dimensions
|
|
225
|
-
});
|
|
226
|
-
const sidebar = tabBarPosition === 'left' || tabBarPosition === 'right';
|
|
227
|
-
const spacing = tabBarVariant === 'material' ? SPACING_MATERIAL : SPACING_UIKIT;
|
|
228
|
-
const tabBarBackgroundElement = tabBarBackground?.();
|
|
229
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.Animated.View, {
|
|
230
|
-
style: [tabBarPosition === 'left' ? styles.start : tabBarPosition === 'right' ? styles.end : styles.bottom, (_reactNative.Platform.OS === 'web' ? tabBarPosition === 'right' : direction === 'rtl' && tabBarPosition === 'left' || direction !== 'rtl' && tabBarPosition === 'right') ? {
|
|
231
|
-
borderLeftWidth: _reactNative.StyleSheet.hairlineWidth
|
|
232
|
-
} : (_reactNative.Platform.OS === 'web' ? tabBarPosition === 'left' : direction === 'rtl' && tabBarPosition === 'right' || direction !== 'rtl' && tabBarPosition === 'left') ? {
|
|
233
|
-
borderRightWidth: _reactNative.StyleSheet.hairlineWidth
|
|
234
|
-
} : tabBarPosition === 'top' ? {
|
|
235
|
-
borderBottomWidth: _reactNative.StyleSheet.hairlineWidth
|
|
236
|
-
} : {
|
|
237
|
-
borderTopWidth: _reactNative.StyleSheet.hairlineWidth
|
|
238
|
-
}, {
|
|
239
|
-
backgroundColor: tabBarBackgroundElement != null ? 'transparent' : colors.card,
|
|
240
|
-
borderColor: colors.border
|
|
241
|
-
}, sidebar ? {
|
|
242
|
-
paddingTop: (hasHorizontalLabels ? spacing : spacing / 2) + insets.top,
|
|
243
|
-
paddingBottom: (hasHorizontalLabels ? spacing : spacing / 2) + insets.bottom,
|
|
244
|
-
paddingStart: spacing + (tabBarPosition === 'left' ? insets.left : 0),
|
|
245
|
-
paddingEnd: spacing + (tabBarPosition === 'right' ? insets.right : 0),
|
|
246
|
-
minWidth: hasHorizontalLabels ? (0, _elements.getDefaultSidebarWidth)(dimensions) : 0
|
|
247
|
-
} : [{
|
|
248
|
-
transform: [{
|
|
249
|
-
translateY: visible.interpolate({
|
|
250
|
-
inputRange: [0, 1],
|
|
251
|
-
outputRange: [layout.height + insets[tabBarPosition === 'top' ? 'top' : 'bottom'] + _reactNative.StyleSheet.hairlineWidth, 0]
|
|
252
|
-
})
|
|
253
|
-
}],
|
|
254
|
-
// Absolutely position the tab bar so that the content is below it
|
|
255
|
-
// This is needed to avoid gap at bottom when the tab bar is hidden
|
|
256
|
-
position: isTabBarHidden ? 'absolute' : undefined
|
|
257
|
-
}, {
|
|
258
|
-
height: tabBarHeight,
|
|
259
|
-
paddingBottom: tabBarPosition === 'bottom' ? insets.bottom : 0,
|
|
260
|
-
paddingTop: tabBarPosition === 'top' ? insets.top : 0,
|
|
261
|
-
paddingHorizontal: Math.max(insets.left, insets.right)
|
|
262
|
-
}], tabBarStyle],
|
|
263
|
-
pointerEvents: isTabBarHidden ? 'none' : 'auto',
|
|
264
|
-
onLayout: sidebar ? undefined : handleLayout,
|
|
265
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
266
|
-
pointerEvents: "none",
|
|
267
|
-
style: _reactNative.StyleSheet.absoluteFill,
|
|
268
|
-
children: tabBarBackgroundElement
|
|
269
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
270
|
-
accessibilityRole: "tablist",
|
|
271
|
-
style: sidebar ? styles.sideContent : styles.bottomContent,
|
|
272
|
-
children: routes.map((route, index) => {
|
|
273
|
-
const focused = index === state.index;
|
|
274
|
-
const {
|
|
275
|
-
options
|
|
276
|
-
} = descriptors[route.key];
|
|
277
|
-
const onPress = () => {
|
|
278
|
-
const event = navigation.emit({
|
|
279
|
-
type: 'tabPress',
|
|
280
|
-
target: route.key,
|
|
281
|
-
canPreventDefault: true
|
|
282
|
-
});
|
|
283
|
-
if (!focused && !event.defaultPrevented) {
|
|
284
|
-
navigation.dispatch({
|
|
285
|
-
..._native.CommonActions.navigate(route),
|
|
286
|
-
target: state.key
|
|
287
|
-
});
|
|
288
|
-
}
|
|
289
|
-
};
|
|
290
|
-
const onLongPress = () => {
|
|
291
|
-
navigation.emit({
|
|
292
|
-
type: 'tabLongPress',
|
|
293
|
-
target: route.key
|
|
294
|
-
});
|
|
295
|
-
};
|
|
296
|
-
const label = typeof options.tabBarLabel === 'function' ? options.tabBarLabel : (0, _elements.getLabel)({
|
|
297
|
-
label: options.tabBarLabel,
|
|
298
|
-
title: options.title
|
|
299
|
-
}, route.name);
|
|
300
|
-
const accessibilityLabel = options.tabBarAccessibilityLabel !== undefined ? options.tabBarAccessibilityLabel : typeof label === 'string' && _reactNative.Platform.OS === 'ios' ? `${label}, tab, ${index + 1} of ${routes.length}` : undefined;
|
|
301
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_native.NavigationContext.Provider, {
|
|
302
|
-
value: descriptors[route.key].navigation,
|
|
303
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_native.NavigationRouteContext.Provider, {
|
|
304
|
-
value: route,
|
|
305
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_BottomTabItem.BottomTabItem, {
|
|
306
|
-
href: buildHref(route.name, route.params),
|
|
307
|
-
route: route,
|
|
308
|
-
descriptor: descriptors[route.key],
|
|
309
|
-
focused: focused,
|
|
310
|
-
horizontal: hasHorizontalLabels,
|
|
311
|
-
compact: compact,
|
|
312
|
-
sidebar: sidebar,
|
|
313
|
-
variant: tabBarVariant,
|
|
314
|
-
onPress: onPress,
|
|
315
|
-
onLongPress: onLongPress,
|
|
316
|
-
accessibilityLabel: accessibilityLabel,
|
|
317
|
-
testID: options.tabBarButtonTestID,
|
|
318
|
-
allowFontScaling: options.tabBarAllowFontScaling,
|
|
319
|
-
activeTintColor: tabBarActiveTintColor,
|
|
320
|
-
inactiveTintColor: tabBarInactiveTintColor,
|
|
321
|
-
activeBackgroundColor: tabBarActiveBackgroundColor,
|
|
322
|
-
inactiveBackgroundColor: tabBarInactiveBackgroundColor,
|
|
323
|
-
button: options.tabBarButton,
|
|
324
|
-
icon: options.tabBarIcon ?? (({
|
|
325
|
-
color,
|
|
326
|
-
size
|
|
327
|
-
}) => /*#__PURE__*/(0, _jsxRuntime.jsx)(_elements.MissingIcon, {
|
|
328
|
-
color: color,
|
|
329
|
-
size: size
|
|
330
|
-
})),
|
|
331
|
-
badge: options.tabBarBadge,
|
|
332
|
-
badgeStyle: options.tabBarBadgeStyle,
|
|
333
|
-
label: label,
|
|
334
|
-
showLabel: tabBarShowLabel,
|
|
335
|
-
labelStyle: options.tabBarLabelStyle,
|
|
336
|
-
iconStyle: options.tabBarIconStyle,
|
|
337
|
-
style: [sidebar ? {
|
|
338
|
-
marginVertical: hasHorizontalLabels ? tabBarVariant === 'material' ? 0 : 1 : spacing / 2
|
|
339
|
-
} : styles.bottomItem, options.tabBarItemStyle]
|
|
340
|
-
})
|
|
341
|
-
})
|
|
342
|
-
}, route.key);
|
|
343
|
-
})
|
|
344
|
-
})]
|
|
345
|
-
});
|
|
346
|
-
}
|
|
347
|
-
const styles = _reactNative.StyleSheet.create({
|
|
348
|
-
start: {
|
|
349
|
-
top: 0,
|
|
350
|
-
bottom: 0,
|
|
351
|
-
start: 0
|
|
352
|
-
},
|
|
353
|
-
end: {
|
|
354
|
-
top: 0,
|
|
355
|
-
bottom: 0,
|
|
356
|
-
end: 0
|
|
357
|
-
},
|
|
358
|
-
bottom: {
|
|
359
|
-
start: 0,
|
|
360
|
-
end: 0,
|
|
361
|
-
bottom: 0,
|
|
362
|
-
elevation: 8
|
|
363
|
-
},
|
|
364
|
-
bottomContent: {
|
|
365
|
-
flex: 1,
|
|
366
|
-
flexDirection: 'row'
|
|
367
|
-
},
|
|
368
|
-
sideContent: {
|
|
369
|
-
flex: 1,
|
|
370
|
-
flexDirection: 'column'
|
|
371
|
-
},
|
|
372
|
-
bottomItem: {
|
|
373
|
-
flex: 1
|
|
374
|
-
}
|
|
375
|
-
});
|
|
376
|
-
//# sourceMappingURL=BottomTabBar.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_elements","require","_native","_react","_interopRequireDefault","_reactNative","_reactNativeSafeAreaContext","_BottomTabBarHeightCallbackContext","_useIsKeyboardShown","_BottomTabItem","_jsxRuntime","e","__esModule","default","TABBAR_HEIGHT_UIKIT","TABBAR_HEIGHT_UIKIT_COMPACT","SPACING_UIKIT","SPACING_MATERIAL","DEFAULT_MAX_TAB_ITEM_WIDTH","useNativeDriver","Platform","OS","shouldUseHorizontalLabels","state","descriptors","dimensions","tabBarLabelPosition","routes","index","key","options","width","maxTabWidth","reduce","acc","route","tabBarItemStyle","flattenedStyle","StyleSheet","flatten","maxWidth","height","isCompact","tabBarPosition","tabBarVariant","isLandscape","horizontalLabels","isPad","getTabBarHeight","insets","style","customHeight","undefined","inset","exports","BottomTabBar","navigation","colors","useTheme","direction","useLocale","buildHref","useLinkBuilder","focusedRoute","focusedDescriptor","focusedOptions","tabBarShowLabel","tabBarHideOnKeyboard","tabBarVisibilityAnimationConfig","tabBarStyle","tabBarBackground","tabBarActiveTintColor","tabBarInactiveTintColor","tabBarActiveBackgroundColor","tabBarInactiveBackgroundColor","Error","useSafeAreaFrame","isKeyboardShown","useIsKeyboardShown","onHeightChange","React","useContext","BottomTabBarHeightCallbackContext","shouldShowTabBar","visibilityAnimationConfigRef","useRef","useEffect","current","isTabBarHidden","setIsTabBarHidden","useState","visible","Animated","Value","visibilityAnimationConfig","animation","show","spring","timing","toValue","duration","config","start","finished","hide","stopAnimation","layout","setLayout","handleLayout","nativeEvent","tabBarHeight","hasHorizontalLabels","compact","sidebar","spacing","tabBarBackgroundElement","jsxs","View","styles","end","bottom","borderLeftWidth","hairlineWidth","borderRightWidth","borderBottomWidth","borderTopWidth","backgroundColor","card","borderColor","border","paddingTop","top","paddingBottom","paddingStart","left","paddingEnd","right","minWidth","getDefaultSidebarWidth","transform","translateY","interpolate","inputRange","outputRange","position","paddingHorizontal","Math","max","pointerEvents","onLayout","children","jsx","absoluteFill","accessibilityRole","sideContent","bottomContent","map","focused","onPress","event","emit","type","target","canPreventDefault","defaultPrevented","dispatch","CommonActions","navigate","onLongPress","label","tabBarLabel","getLabel","title","name","accessibilityLabel","tabBarAccessibilityLabel","length","NavigationContext","Provider","value","NavigationRouteContext","BottomTabItem","href","params","descriptor","horizontal","variant","testID","tabBarButtonTestID","allowFontScaling","tabBarAllowFontScaling","activeTintColor","inactiveTintColor","activeBackgroundColor","inactiveBackgroundColor","button","tabBarButton","icon","tabBarIcon","color","size","MissingIcon","badge","tabBarBadge","badgeStyle","tabBarBadgeStyle","showLabel","labelStyle","tabBarLabelStyle","iconStyle","tabBarIconStyle","marginVertical","bottomItem","create","elevation","flex","flexDirection"],"sourceRoot":"../../../src","sources":["views/BottomTab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AK,EAAEA,KAAM;cACbqC,SAAS,EAAE5I,eAAgB;cAC3B6I,UAAU,EAAEjL,OAAO,CAACkL,gBAAiB;cACrCC,SAAS,EAAEnL,OAAO,CAACoL,eAAgB;cACnChK,KAAK,EAAE,CACL+D,OAAO,GACH;gBACEkG,cAAc,EAAEpG,mBAAmB,GAC/BnE,aAAa,KAAK,UAAU,GAC1B,CAAC,GACD,CAAC,GACHsE,OAAO,GAAG;cAChB,CAAC,GACDI,MAAM,CAAC8F,UAAU,EACrBtL,OAAO,CAACM,eAAe;YACvB,CACH;UAAC,CAC6B;QAAC,GAhD7BD,KAAK,CAACN,GAiDe,CAAC;MAEjC,CAAC;IAAC,CACE,CAAC;EAAA,CACM,CAAC;AAEpB;AAEA,MAAMyF,MAAM,GAAGhF,uBAAU,CAAC+K,MAAM,CAAC;EAC/B/G,KAAK,EAAE;IACL6B,GAAG,EAAE,CAAC;IACNX,MAAM,EAAE,CAAC;IACTlB,KAAK,EAAE;EACT,CAAC;EACDiB,GAAG,EAAE;IACHY,GAAG,EAAE,CAAC;IACNX,MAAM,EAAE,CAAC;IACTD,GAAG,EAAE;EACP,CAAC;EACDC,MAAM,EAAE;IACNlB,KAAK,EAAE,CAAC;IACRiB,GAAG,EAAE,CAAC;IACNC,MAAM,EAAE,CAAC;IACT8F,SAAS,EAAE;EACb,CAAC;EACD3D,aAAa,EAAE;IACb4D,IAAI,EAAE,CAAC;IACPC,aAAa,EAAE;EACjB,CAAC;EACD9D,WAAW,EAAE;IACX6D,IAAI,EAAE,CAAC;IACPC,aAAa,EAAE;EACjB,CAAC;EACDJ,UAAU,EAAE;IACVG,IAAI,EAAE;EACR;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1,227 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.BottomTabItem = BottomTabItem;
|
|
7
|
-
var _elements = require("@react-navigation/elements");
|
|
8
|
-
var _native = require("@react-navigation/native");
|
|
9
|
-
var _color = _interopRequireDefault(require("color"));
|
|
10
|
-
var _react = _interopRequireDefault(require("react"));
|
|
11
|
-
var _reactNative = require("react-native");
|
|
12
|
-
var _TabBarIcon = require("./TabBarIcon.js");
|
|
13
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
14
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
15
|
-
const renderButtonDefault = props => /*#__PURE__*/(0, _jsxRuntime.jsx)(_elements.PlatformPressable, {
|
|
16
|
-
...props
|
|
17
|
-
});
|
|
18
|
-
const SUPPORTS_LARGE_CONTENT_VIEWER = _reactNative.Platform.OS === 'ios' && parseInt(_reactNative.Platform.Version, 10) >= 13;
|
|
19
|
-
function BottomTabItem({
|
|
20
|
-
route,
|
|
21
|
-
href,
|
|
22
|
-
focused,
|
|
23
|
-
descriptor,
|
|
24
|
-
label,
|
|
25
|
-
icon,
|
|
26
|
-
badge,
|
|
27
|
-
badgeStyle,
|
|
28
|
-
button = renderButtonDefault,
|
|
29
|
-
accessibilityLabel,
|
|
30
|
-
testID,
|
|
31
|
-
onPress,
|
|
32
|
-
onLongPress,
|
|
33
|
-
horizontal,
|
|
34
|
-
compact,
|
|
35
|
-
sidebar,
|
|
36
|
-
variant,
|
|
37
|
-
activeTintColor: customActiveTintColor,
|
|
38
|
-
inactiveTintColor: customInactiveTintColor,
|
|
39
|
-
activeBackgroundColor: customActiveBackgroundColor,
|
|
40
|
-
inactiveBackgroundColor = 'transparent',
|
|
41
|
-
showLabel = true,
|
|
42
|
-
// On iOS 13+, we use `largeContentTitle` for accessibility
|
|
43
|
-
// So we don't need the font to scale up
|
|
44
|
-
// https://developer.apple.com/documentation/uikit/uiview/3183939-largecontenttitle
|
|
45
|
-
allowFontScaling = SUPPORTS_LARGE_CONTENT_VIEWER ? false : undefined,
|
|
46
|
-
labelStyle,
|
|
47
|
-
iconStyle,
|
|
48
|
-
style
|
|
49
|
-
}) {
|
|
50
|
-
const {
|
|
51
|
-
colors,
|
|
52
|
-
fonts
|
|
53
|
-
} = (0, _native.useTheme)();
|
|
54
|
-
const activeTintColor = customActiveTintColor ?? (variant === 'uikit' && sidebar && horizontal ? (0, _color.default)(colors.primary).isDark() ? 'white' : (0, _color.default)(colors.primary).darken(0.71).string() : colors.primary);
|
|
55
|
-
const inactiveTintColor = customInactiveTintColor === undefined ? variant === 'material' ? (0, _color.default)(colors.text).alpha(0.68).rgb().string() : (0, _color.default)(colors.text).mix((0, _color.default)(colors.card), 0.5).hex() : customInactiveTintColor;
|
|
56
|
-
const activeBackgroundColor = customActiveBackgroundColor ?? (variant === 'material' ? (0, _color.default)(activeTintColor).alpha(0.12).rgb().string() : sidebar && horizontal ? colors.primary : 'transparent');
|
|
57
|
-
const {
|
|
58
|
-
options
|
|
59
|
-
} = descriptor;
|
|
60
|
-
const labelString = (0, _elements.getLabel)({
|
|
61
|
-
label: typeof options.tabBarLabel === 'string' ? options.tabBarLabel : undefined,
|
|
62
|
-
title: options.title
|
|
63
|
-
}, route.name);
|
|
64
|
-
let labelInactiveTintColor = inactiveTintColor;
|
|
65
|
-
let iconInactiveTintColor = inactiveTintColor;
|
|
66
|
-
if (variant === 'uikit' && sidebar && horizontal && customInactiveTintColor === undefined) {
|
|
67
|
-
iconInactiveTintColor = colors.primary;
|
|
68
|
-
labelInactiveTintColor = colors.text;
|
|
69
|
-
}
|
|
70
|
-
const renderLabel = ({
|
|
71
|
-
focused
|
|
72
|
-
}) => {
|
|
73
|
-
if (showLabel === false) {
|
|
74
|
-
return null;
|
|
75
|
-
}
|
|
76
|
-
const color = focused ? activeTintColor : labelInactiveTintColor;
|
|
77
|
-
if (typeof label !== 'string') {
|
|
78
|
-
return label({
|
|
79
|
-
focused,
|
|
80
|
-
color,
|
|
81
|
-
position: horizontal ? 'beside-icon' : 'below-icon',
|
|
82
|
-
children: labelString
|
|
83
|
-
});
|
|
84
|
-
}
|
|
85
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_elements.Label, {
|
|
86
|
-
style: [horizontal ? [styles.labelBeside, variant === 'material' ? styles.labelSidebarMaterial : sidebar ? styles.labelSidebarUiKit : compact ? styles.labelBesideUikitCompact : styles.labelBesideUikit, icon == null && {
|
|
87
|
-
marginStart: 0
|
|
88
|
-
}] : styles.labelBeneath, compact || variant === 'uikit' && sidebar && horizontal ? fonts.regular : fonts.medium, labelStyle],
|
|
89
|
-
allowFontScaling: allowFontScaling,
|
|
90
|
-
tintColor: color,
|
|
91
|
-
children: label
|
|
92
|
-
});
|
|
93
|
-
};
|
|
94
|
-
const renderIcon = ({
|
|
95
|
-
focused
|
|
96
|
-
}) => {
|
|
97
|
-
if (icon === undefined) {
|
|
98
|
-
return null;
|
|
99
|
-
}
|
|
100
|
-
const activeOpacity = focused ? 1 : 0;
|
|
101
|
-
const inactiveOpacity = focused ? 0 : 1;
|
|
102
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_TabBarIcon.TabBarIcon, {
|
|
103
|
-
route: route,
|
|
104
|
-
variant: variant,
|
|
105
|
-
size: compact ? 'compact' : 'regular',
|
|
106
|
-
badge: badge,
|
|
107
|
-
badgeStyle: badgeStyle,
|
|
108
|
-
activeOpacity: activeOpacity,
|
|
109
|
-
allowFontScaling: allowFontScaling,
|
|
110
|
-
inactiveOpacity: inactiveOpacity,
|
|
111
|
-
activeTintColor: activeTintColor,
|
|
112
|
-
inactiveTintColor: iconInactiveTintColor,
|
|
113
|
-
renderIcon: icon,
|
|
114
|
-
style: iconStyle
|
|
115
|
-
});
|
|
116
|
-
};
|
|
117
|
-
const scene = {
|
|
118
|
-
route,
|
|
119
|
-
focused
|
|
120
|
-
};
|
|
121
|
-
const backgroundColor = focused ? activeBackgroundColor : inactiveBackgroundColor;
|
|
122
|
-
const {
|
|
123
|
-
flex
|
|
124
|
-
} = _reactNative.StyleSheet.flatten(style || {});
|
|
125
|
-
const borderRadius = variant === 'material' ? horizontal ? 56 : 16 : sidebar && horizontal ? 10 : 0;
|
|
126
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
127
|
-
style: [
|
|
128
|
-
// Clip ripple effect on Android
|
|
129
|
-
{
|
|
130
|
-
borderRadius,
|
|
131
|
-
overflow: variant === 'material' ? 'hidden' : 'visible'
|
|
132
|
-
}, style],
|
|
133
|
-
children: button({
|
|
134
|
-
href,
|
|
135
|
-
onPress,
|
|
136
|
-
onLongPress,
|
|
137
|
-
testID,
|
|
138
|
-
accessibilityLabel,
|
|
139
|
-
accessibilityLargeContentTitle: labelString,
|
|
140
|
-
accessibilityShowsLargeContentViewer: true,
|
|
141
|
-
// FIXME: accessibilityRole: 'tab' doesn't seem to work as expected on iOS
|
|
142
|
-
accessibilityRole: _reactNative.Platform.select({
|
|
143
|
-
ios: 'button',
|
|
144
|
-
default: 'tab'
|
|
145
|
-
}),
|
|
146
|
-
accessibilityState: {
|
|
147
|
-
selected: focused
|
|
148
|
-
},
|
|
149
|
-
// @ts-expect-error: keep for compatibility with older React Native versions
|
|
150
|
-
accessibilityStates: focused ? ['selected'] : [],
|
|
151
|
-
android_ripple: {
|
|
152
|
-
borderless: true
|
|
153
|
-
},
|
|
154
|
-
hoverEffect: variant === 'material' || sidebar && horizontal ? {
|
|
155
|
-
color: colors.text
|
|
156
|
-
} : undefined,
|
|
157
|
-
pressOpacity: 1,
|
|
158
|
-
style: [styles.tab, {
|
|
159
|
-
flex,
|
|
160
|
-
backgroundColor,
|
|
161
|
-
borderRadius
|
|
162
|
-
}, sidebar ? variant === 'material' ? horizontal ? styles.tabBarSidebarMaterial : styles.tabVerticalMaterial : horizontal ? styles.tabBarSidebarUiKit : styles.tabVerticalUiKit : variant === 'material' ? styles.tabVerticalMaterial : horizontal ? styles.tabHorizontalUiKit : styles.tabVerticalUiKit],
|
|
163
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_react.default.Fragment, {
|
|
164
|
-
children: [renderIcon(scene), renderLabel(scene)]
|
|
165
|
-
})
|
|
166
|
-
})
|
|
167
|
-
});
|
|
168
|
-
}
|
|
169
|
-
const styles = _reactNative.StyleSheet.create({
|
|
170
|
-
tab: {
|
|
171
|
-
alignItems: 'center',
|
|
172
|
-
// Roundness for iPad hover effect
|
|
173
|
-
borderRadius: 10
|
|
174
|
-
},
|
|
175
|
-
tabVerticalUiKit: {
|
|
176
|
-
justifyContent: 'flex-start',
|
|
177
|
-
flexDirection: 'column',
|
|
178
|
-
padding: 5
|
|
179
|
-
},
|
|
180
|
-
tabVerticalMaterial: {
|
|
181
|
-
padding: 10
|
|
182
|
-
},
|
|
183
|
-
tabHorizontalUiKit: {
|
|
184
|
-
justifyContent: 'center',
|
|
185
|
-
alignItems: 'center',
|
|
186
|
-
flexDirection: 'row',
|
|
187
|
-
padding: 5
|
|
188
|
-
},
|
|
189
|
-
tabBarSidebarUiKit: {
|
|
190
|
-
justifyContent: 'flex-start',
|
|
191
|
-
alignItems: 'center',
|
|
192
|
-
flexDirection: 'row',
|
|
193
|
-
paddingVertical: 7,
|
|
194
|
-
paddingHorizontal: 5
|
|
195
|
-
},
|
|
196
|
-
tabBarSidebarMaterial: {
|
|
197
|
-
justifyContent: 'flex-start',
|
|
198
|
-
alignItems: 'center',
|
|
199
|
-
flexDirection: 'row',
|
|
200
|
-
paddingVertical: 15,
|
|
201
|
-
paddingStart: 16,
|
|
202
|
-
paddingEnd: 24
|
|
203
|
-
},
|
|
204
|
-
labelSidebarMaterial: {
|
|
205
|
-
marginStart: 12
|
|
206
|
-
},
|
|
207
|
-
labelSidebarUiKit: {
|
|
208
|
-
fontSize: 17,
|
|
209
|
-
marginStart: 10
|
|
210
|
-
},
|
|
211
|
-
labelBeneath: {
|
|
212
|
-
fontSize: 10
|
|
213
|
-
},
|
|
214
|
-
labelBeside: {
|
|
215
|
-
marginEnd: 12,
|
|
216
|
-
lineHeight: 24
|
|
217
|
-
},
|
|
218
|
-
labelBesideUikit: {
|
|
219
|
-
fontSize: 13,
|
|
220
|
-
marginStart: 5
|
|
221
|
-
},
|
|
222
|
-
labelBesideUikitCompact: {
|
|
223
|
-
fontSize: 12,
|
|
224
|
-
marginStart: 5
|
|
225
|
-
}
|
|
226
|
-
});
|
|
227
|
-
//# sourceMappingURL=BottomTabItem.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_elements","require","_native","_color","_interopRequireDefault","_react","_reactNative","_TabBarIcon","_jsxRuntime","e","__esModule","default","renderButtonDefault","props","jsx","PlatformPressable","SUPPORTS_LARGE_CONTENT_VIEWER","Platform","OS","parseInt","Version","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","undefined","labelStyle","iconStyle","style","colors","fonts","useTheme","Color","primary","isDark","darken","string","text","alpha","rgb","mix","card","hex","options","labelString","getLabel","tabBarLabel","title","name","labelInactiveTintColor","iconInactiveTintColor","renderLabel","color","position","children","Label","styles","labelBeside","labelSidebarMaterial","labelSidebarUiKit","labelBesideUikitCompact","labelBesideUikit","marginStart","labelBeneath","regular","medium","tintColor","renderIcon","activeOpacity","inactiveOpacity","TabBarIcon","size","scene","backgroundColor","flex","StyleSheet","flatten","borderRadius","View","overflow","accessibilityLargeContentTitle","accessibilityShowsLargeContentViewer","accessibilityRole","select","ios","accessibilityState","selected","accessibilityStates","android_ripple","borderless","hoverEffect","pressOpacity","tab","tabBarSidebarMaterial","tabVerticalMaterial","tabBarSidebarUiKit","tabVerticalUiKit","tabHorizontalUiKit","jsxs","Fragment","create","alignItems","justifyContent","flexDirection","padding","paddingVertical","paddingHorizontal","paddingStart","paddingEnd","fontSize","marginEnd","lineHeight"],"sourceRoot":"../../../src","sources":["views/BottomTabItem.tsx"],"mappings":";;;;;;AAAA,IAAAA,SA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