@react-navigation/bottom-tabs 7.7.0 → 7.7.1
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/unstable/NativeBottomTabView.native.js +9 -5
- package/lib/module/unstable/NativeBottomTabView.native.js.map +1 -1
- package/lib/typescript/src/unstable/NativeBottomTabView.native.d.ts.map +1 -1
- package/lib/typescript/src/unstable/types.d.ts +57 -31
- package/lib/typescript/src/unstable/types.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/unstable/NativeBottomTabView.native.tsx +9 -5
- package/src/unstable/types.tsx +64 -32
|
@@ -34,10 +34,6 @@ export function NativeBottomTabView({
|
|
|
34
34
|
previousRouteKeyRef.current = focusedRouteKey;
|
|
35
35
|
}, [descriptors, focusedRouteKey, navigation, state.index, state.routes]);
|
|
36
36
|
const currentOptions = descriptors[state.routes[state.index].key]?.options;
|
|
37
|
-
const {
|
|
38
|
-
backgroundColor: tabBarBackgroundColor,
|
|
39
|
-
shadowColor: tabBarShadowColor
|
|
40
|
-
} = currentOptions.tabBarStyle || {};
|
|
41
37
|
const {
|
|
42
38
|
fontFamily = Platform.select({
|
|
43
39
|
ios: fonts.medium.fontFamily,
|
|
@@ -94,6 +90,7 @@ export function NativeBottomTabView({
|
|
|
94
90
|
tabBarItemTitleFontWeight: fontWeight,
|
|
95
91
|
tabBarItemTitleFontSize: fontSize,
|
|
96
92
|
tabBarItemTitleFontSizeActive: fontSize,
|
|
93
|
+
tabBarItemTitleFontStyle: fontStyle,
|
|
97
94
|
tabBarBackgroundColor: currentOptions.tabBarStyle?.backgroundColor,
|
|
98
95
|
tabBarItemActiveIndicatorColor: activeIndicatorColor,
|
|
99
96
|
tabBarItemActiveIndicatorEnabled: currentOptions?.tabBarActiveIndicatorEnabled,
|
|
@@ -133,8 +130,14 @@ export function NativeBottomTabView({
|
|
|
133
130
|
tabBarBadgeStyle,
|
|
134
131
|
tabBarIcon,
|
|
135
132
|
tabBarBadge,
|
|
136
|
-
tabBarSystemItem
|
|
133
|
+
tabBarSystemItem,
|
|
134
|
+
tabBarBlurEffect,
|
|
135
|
+
tabBarStyle
|
|
137
136
|
} = options;
|
|
137
|
+
const {
|
|
138
|
+
backgroundColor: tabBarBackgroundColor,
|
|
139
|
+
shadowColor: tabBarShadowColor
|
|
140
|
+
} = tabBarStyle || {};
|
|
138
141
|
const tabTitle =
|
|
139
142
|
// On iOS, `systemItem` already provides a localized label
|
|
140
143
|
// So we should only use `tabBarLabel` if explicitly provided
|
|
@@ -185,6 +188,7 @@ export function NativeBottomTabView({
|
|
|
185
188
|
standardAppearance: {
|
|
186
189
|
tabBarBackgroundColor,
|
|
187
190
|
tabBarShadowColor,
|
|
191
|
+
tabBarBlurEffect,
|
|
188
192
|
stacked: {
|
|
189
193
|
normal: tabItemAppearance
|
|
190
194
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["getLabel","Lazy","SafeAreaProviderCompat","CommonActions","StackActions","useTheme","Color","React","Platform","PlatformColor","BottomTabs","BottomTabsScreen","NativeScreen","jsx","_jsx","NativeBottomTabView","state","navigation","descriptors","colors","fonts","focusedRouteKey","routes","index","key","previousRouteKeyRef","useRef","useEffect","previousRouteKey","current","options","popToTopOnBlur","prevRoute","find","route","type","popToTopAction","popToTop","target","dispatch","currentOptions","
|
|
1
|
+
{"version":3,"names":["getLabel","Lazy","SafeAreaProviderCompat","CommonActions","StackActions","useTheme","Color","React","Platform","PlatformColor","BottomTabs","BottomTabsScreen","NativeScreen","jsx","_jsx","NativeBottomTabView","state","navigation","descriptors","colors","fonts","focusedRouteKey","routes","index","key","previousRouteKeyRef","useRef","useEffect","previousRouteKey","current","options","popToTopOnBlur","prevRoute","find","route","type","popToTopAction","popToTop","target","dispatch","currentOptions","fontFamily","select","ios","medium","default","regular","fontWeight","fontSize","fontStyle","tabBarLabelStyle","activeTintColor","tabBarActiveTintColor","primary","inactiveTintColor","tabBarInactiveTintColor","text","activeIndicatorColor","tabBarActiveIndicatorColor","alpha","string","undefined","onTransitionStart","closing","emit","data","onTransitionEnd","children","tabBarItemLabelVisibilityMode","tabBarLabelVisibilityMode","tabBarControllerMode","tabBarMinimizeBehavior","tabBarTintColor","tabBarItemIconColor","tabBarItemIconColorActive","tabBarItemTitleFontColor","tabBarItemTitleFontColorActive","tabBarItemTitleFontFamily","tabBarItemTitleFontWeight","tabBarItemTitleFontSize","tabBarItemTitleFontSizeActive","tabBarItemTitleFontStyle","tabBarBackgroundColor","tabBarStyle","backgroundColor","tabBarItemActiveIndicatorColor","tabBarItemActiveIndicatorEnabled","tabBarActiveIndicatorEnabled","tabBarItemRippleColor","tabBarRippleColor","experimentalControlNavigationStateInJS","onNativeFocusChange","e","nativeEvent","tabKey","isFocused","findIndex","r","event","canPreventDefault","defaultPrevented","startTransition","navigate","name","params","map","render","isPreloaded","preloadedRouteKeys","includes","title","lazy","tabBarLabel","tabBarBadgeStyle","tabBarIcon","tabBarBadge","tabBarSystemItem","tabBarBlurEffect","shadowColor","tabBarShadowColor","tabTitle","OS","label","tabItemAppearance","badgeBackgroundColor","notification","badgeTextColor","isLight","icon","getPlatformIcon","focused","selectedIcon","onWillDisappear","onWillAppear","onDidAppear","onDidDisappear","shared","tabBarItemBadgeBackgroundColor","tabBarItemBadgeTextColor","badgeValue","toString","systemItem","standardAppearance","stacked","normal","inline","compactInline","enabled","tinted","templateSource","source","android","imageSource"],"sourceRoot":"../../../src","sources":["unstable/NativeBottomTabView.native.tsx"],"mappings":";;AAAA,SACEA,QAAQ,EACRC,IAAI,EACJC,sBAAsB,QACjB,4BAA4B;AACnC,SACEC,aAAa,EAGbC,YAAY,EAEZC,QAAQ,QACH,0BAA0B;AACjC,OAAOC,KAAK,MAAM,OAAO;AACzB,OAAO,KAAKC,KAAK,MAAM,OAAO;AAC9B,SAA0BC,QAAQ,EAAEC,aAAa,QAAQ,cAAc;AACvE,SACEC,UAAU,EACVC,gBAAgB,QAGX,sBAAsB;AAE7B,SAASC,YAA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B;MACtBkH,cAAc,EAAErB,IAAI,CAACsB;IACvB,CAAC,GACDzF,SAAS;IACjB0F,OAAO,EAAEvB,IAAI,EAAE7F,IAAI,KAAK,kBAAkB,GAAG6F,IAAI,GAAGnE,SAAS;IAC7D2E,MAAM,EACJR,IAAI,EAAE7F,IAAI,KAAK,OAAO,GAClB;MACEA,IAAI,EAAE,aAAa;MACnBqH,WAAW,EAAExB,IAAI,CAACsB;IACpB,CAAC,GACDzF;EACR,CAAC;AACH","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NativeBottomTabView.native.d.ts","sourceRoot":"","sources":["../../../../src/unstable/NativeBottomTabView.native.tsx"],"names":[],"mappings":"AAKA,OAAO,EAEL,KAAK,aAAa,EAGlB,KAAK,kBAAkB,EAExB,MAAM,0BAA0B,CAAC;AAYlC,OAAO,KAAK,EAEV,4BAA4B,EAC5B,+BAA+B,EAC/B,gCAAgC,EACjC,MAAM,SAAS,CAAC;AAEjB,KAAK,KAAK,GAAG,+BAA+B,GAAG;IAC7C,KAAK,EAAE,kBAAkB,CAAC,aAAa,CAAC,CAAC;IACzC,UAAU,EAAE,gCAAgC,CAAC;IAC7C,WAAW,EAAE,4BAA4B,CAAC;CAC3C,CAAC;AAEF,wBAAgB,mBAAmB,CAAC,EAAE,KAAK,EAAE,UAAU,EAAE,WAAW,EAAE,EAAE,KAAK,
|
|
1
|
+
{"version":3,"file":"NativeBottomTabView.native.d.ts","sourceRoot":"","sources":["../../../../src/unstable/NativeBottomTabView.native.tsx"],"names":[],"mappings":"AAKA,OAAO,EAEL,KAAK,aAAa,EAGlB,KAAK,kBAAkB,EAExB,MAAM,0BAA0B,CAAC;AAYlC,OAAO,KAAK,EAEV,4BAA4B,EAC5B,+BAA+B,EAC/B,gCAAgC,EACjC,MAAM,SAAS,CAAC;AAEjB,KAAK,KAAK,GAAG,+BAA+B,GAAG;IAC7C,KAAK,EAAE,kBAAkB,CAAC,aAAa,CAAC,CAAC;IACzC,UAAU,EAAE,gCAAgC,CAAC;IAC7C,WAAW,EAAE,4BAA4B,CAAC;CAC3C,CAAC;AAEF,wBAAgB,mBAAmB,CAAC,EAAE,KAAK,EAAE,UAAU,EAAE,WAAW,EAAE,EAAE,KAAK,2CAuP5E"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { DefaultNavigatorOptions, Descriptor, NavigationHelpers, NavigationProp, ParamListBase, RouteProp, TabActionHelpers, TabNavigationState, TabRouterOptions, Theme } from '@react-navigation/native';
|
|
2
2
|
import type { ColorValue, ImageSourcePropType, TextStyle } from 'react-native';
|
|
3
3
|
import type { EdgeInsets } from 'react-native-safe-area-context';
|
|
4
|
-
import type { BottomTabsSystemItem, TabBarControllerMode, TabBarItemLabelVisibilityMode, TabBarMinimizeBehavior } from 'react-native-screens';
|
|
4
|
+
import type { BottomTabsScreenBlurEffect, BottomTabsSystemItem, TabBarControllerMode, TabBarItemLabelVisibilityMode, TabBarMinimizeBehavior } from 'react-native-screens';
|
|
5
5
|
import type { SFSymbol } from 'sf-symbols-typescript';
|
|
6
6
|
import type { NativeHeaderOptions } from './NativeScreen/types';
|
|
7
7
|
export type Layout = {
|
|
@@ -103,7 +103,7 @@ export type NativeBottomTabNavigationOptions = NativeHeaderOptions & {
|
|
|
103
103
|
*/
|
|
104
104
|
tabBarSystemItem?: BottomTabsSystemItem;
|
|
105
105
|
/**
|
|
106
|
-
* Title string of
|
|
106
|
+
* Title string of the tab displayed in the tab bar
|
|
107
107
|
*
|
|
108
108
|
* Overrides the label provided by `tabBarSystemItem` on iOS.
|
|
109
109
|
*
|
|
@@ -112,12 +112,28 @@ export type NativeBottomTabNavigationOptions = NativeHeaderOptions & {
|
|
|
112
112
|
* - Otherwise, it falls back to the `title` or route name.
|
|
113
113
|
*/
|
|
114
114
|
tabBarLabel?: string;
|
|
115
|
+
/**
|
|
116
|
+
* Label visibility mode for the tab bar items.
|
|
117
|
+
*
|
|
118
|
+
* The following values are currently supported:
|
|
119
|
+
*
|
|
120
|
+
* - `auto` - the system decides when to show or hide labels
|
|
121
|
+
* - `selected` - labels are shown only for the selected tab
|
|
122
|
+
* - `labeled` - labels are always shown
|
|
123
|
+
* - `unlabeled` - labels are never shown
|
|
124
|
+
*
|
|
125
|
+
* Defaults to `auto`.
|
|
126
|
+
*
|
|
127
|
+
* @platform android
|
|
128
|
+
*/
|
|
129
|
+
tabBarLabelVisibilityMode?: TabBarItemLabelVisibilityMode;
|
|
115
130
|
/**
|
|
116
131
|
* Style object for the tab label.
|
|
117
132
|
*/
|
|
118
133
|
tabBarLabelStyle?: Pick<TextStyle, 'fontFamily' | 'fontSize' | 'fontWeight' | 'fontStyle'>;
|
|
119
134
|
/**
|
|
120
135
|
* Icon to display for the tab.
|
|
136
|
+
*
|
|
121
137
|
* Showing a different icon for focused tab is only supported on iOS.
|
|
122
138
|
*
|
|
123
139
|
* Overrides the icon provided by `tabBarSystemItem` on iOS.
|
|
@@ -132,7 +148,8 @@ export type NativeBottomTabNavigationOptions = NativeHeaderOptions & {
|
|
|
132
148
|
/**
|
|
133
149
|
* Custom style for the tab bar badge.
|
|
134
150
|
* You can specify a background color or text color here.
|
|
135
|
-
*
|
|
151
|
+
*
|
|
152
|
+
* @platform android
|
|
136
153
|
*/
|
|
137
154
|
tabBarBadgeStyle?: {
|
|
138
155
|
backgroundColor?: ColorValue;
|
|
@@ -149,7 +166,7 @@ export type NativeBottomTabNavigationOptions = NativeHeaderOptions & {
|
|
|
149
166
|
*/
|
|
150
167
|
tabBarInactiveTintColor?: ColorValue;
|
|
151
168
|
/**
|
|
152
|
-
*
|
|
169
|
+
* Background color of the active indicator.
|
|
153
170
|
*
|
|
154
171
|
* @platform android
|
|
155
172
|
*/
|
|
@@ -161,7 +178,7 @@ export type NativeBottomTabNavigationOptions = NativeHeaderOptions & {
|
|
|
161
178
|
*/
|
|
162
179
|
tabBarActiveIndicatorEnabled?: boolean;
|
|
163
180
|
/**
|
|
164
|
-
*
|
|
181
|
+
* Color of tab bar item's ripple effect.
|
|
165
182
|
*
|
|
166
183
|
* @platform android
|
|
167
184
|
*/
|
|
@@ -184,68 +201,77 @@ export type NativeBottomTabNavigationOptions = NativeHeaderOptions & {
|
|
|
184
201
|
shadowColor?: ColorValue;
|
|
185
202
|
};
|
|
186
203
|
/**
|
|
187
|
-
*
|
|
188
|
-
*
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
* Whether any nested stack should be popped to top when navigating away from the tab.
|
|
193
|
-
* Defaults to `false`.
|
|
194
|
-
*/
|
|
195
|
-
popToTopOnBlur?: boolean;
|
|
196
|
-
/**
|
|
197
|
-
* Specifies the label visibility mode for the tab bar items.
|
|
204
|
+
* Blur effect applied to the tab bar when tab screen is selected.
|
|
205
|
+
*
|
|
206
|
+
* Works with backgroundColor's alpha < 1.
|
|
207
|
+
*
|
|
208
|
+
* Only supported on iOS 18 and lower.
|
|
198
209
|
*
|
|
199
210
|
* The following values are currently supported:
|
|
200
211
|
*
|
|
201
|
-
* - `
|
|
202
|
-
* - `
|
|
203
|
-
* -
|
|
204
|
-
* - `unlabeled` - labels are never shown
|
|
212
|
+
* - `none` - disables blur effect
|
|
213
|
+
* - `systemDefault` - uses UIKit's default tab bar blur effect
|
|
214
|
+
* - one of styles mapped from UIKit's UIBlurEffectStyle, e.g. `systemUltraThinMaterial`
|
|
205
215
|
*
|
|
206
|
-
*
|
|
216
|
+
* Defaults to `systemDefault`.
|
|
217
|
+
*
|
|
218
|
+
* Complete list of possible blur effect styles is available in the official UIKit documentation:
|
|
219
|
+
* @see {@link https://developer.apple.com/documentation/uikit/uiblureffect/style|UIBlurEffect.Style}
|
|
220
|
+
*
|
|
221
|
+
* @platform ios
|
|
207
222
|
*/
|
|
208
|
-
|
|
223
|
+
tabBarBlurEffect?: BottomTabsScreenBlurEffect;
|
|
209
224
|
/**
|
|
210
|
-
*
|
|
225
|
+
* Display mode for the tab bar.
|
|
211
226
|
*
|
|
212
227
|
* Available starting from iOS 18.
|
|
213
228
|
* Not supported on tvOS.
|
|
214
229
|
*
|
|
215
230
|
* The following values are currently supported:
|
|
216
231
|
*
|
|
217
|
-
* - `
|
|
232
|
+
* - `auto` - the system sets the display mode based on the tab’s content
|
|
218
233
|
* - `tabBar` - the system displays the content only as a tab bar
|
|
219
234
|
* - `tabSidebar` - the tab bar is displayed as a sidebar
|
|
220
235
|
*
|
|
221
|
-
*
|
|
222
|
-
* @see {@link https://developer.apple.com/documentation/uikit/uitabbarcontroller/mode|UITabBarController.Mode}
|
|
236
|
+
* Defaults to `auto`.
|
|
223
237
|
*
|
|
224
|
-
* @
|
|
238
|
+
* @see {@link https://developer.apple.com/documentation/uikit/uitabbarcontroller/mode|UITabBarController.Mode}
|
|
225
239
|
*
|
|
226
240
|
* @platform ios
|
|
227
|
-
* @supported iOS 18 or higher, not supported on tvOS
|
|
228
241
|
*/
|
|
229
242
|
tabBarControllerMode?: TabBarControllerMode;
|
|
230
243
|
/**
|
|
231
|
-
*
|
|
244
|
+
* Minimize behavior for the tab bar.
|
|
245
|
+
*
|
|
246
|
+
* Available starting from iOS 26.
|
|
232
247
|
*
|
|
233
248
|
* The following values are currently supported:
|
|
234
249
|
*
|
|
235
|
-
* - `
|
|
250
|
+
* - `auto` - resolves to the system default minimize behavior
|
|
236
251
|
* - `never` - the tab bar does not minimize
|
|
237
252
|
* - `onScrollDown` - the tab bar minimizes when scrolling down and
|
|
238
253
|
* expands when scrolling back up
|
|
239
254
|
* - `onScrollUp` - the tab bar minimizes when scrolling up and expands
|
|
240
255
|
* when scrolling back down
|
|
241
256
|
*
|
|
257
|
+
* Defaults to `auto`.
|
|
258
|
+
*
|
|
242
259
|
* The supported values correspond to the official UIKit documentation:
|
|
243
260
|
* @see {@link https://developer.apple.com/documentation/uikit/uitabbarcontroller/minimizebehavior|UITabBarController.MinimizeBehavior}
|
|
244
261
|
*
|
|
245
262
|
* @platform ios
|
|
246
|
-
* @supported iOS 26 or higher
|
|
247
263
|
*/
|
|
248
264
|
tabBarMinimizeBehavior?: TabBarMinimizeBehavior;
|
|
265
|
+
/**
|
|
266
|
+
* Whether this screens should render the first time it's accessed. Defaults to `true`.
|
|
267
|
+
* Set it to `false` if you want to render the screen on initial render.
|
|
268
|
+
*/
|
|
269
|
+
lazy?: boolean;
|
|
270
|
+
/**
|
|
271
|
+
* Whether any nested stack should be popped to top when navigating away from the tab.
|
|
272
|
+
* Defaults to `false`.
|
|
273
|
+
*/
|
|
274
|
+
popToTopOnBlur?: boolean;
|
|
249
275
|
};
|
|
250
276
|
export type NativeBottomTabDescriptor = Descriptor<NativeBottomTabNavigationOptions, NativeBottomTabNavigationProp<ParamListBase>, RouteProp<ParamListBase>>;
|
|
251
277
|
export type NativeBottomTabDescriptorMap = Record<string, NativeBottomTabDescriptor>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/unstable/types.tsx"],"names":[],"mappings":"AAAA,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,EAAE,UAAU,EAAE,mBAAmB,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC/E,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC;AACjE,OAAO,KAAK,EACV,oBAAoB,EACpB,oBAAoB,EACpB,6BAA6B,EAC7B,sBAAsB,EACvB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAEtD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAEhE,MAAM,MAAM,MAAM,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAAC;AAEvD,MAAM,MA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AChC,6BAA6B,CAAC,aAAa,CAAC,EAC5C,SAAS,CAAC,aAAa,CAAC,CACzB,CAAC;AAEF,MAAM,MAAM,4BAA4B,GAAG,MAAM,CAC/C,MAAM,EACN,yBAAyB,CAC1B,CAAC;AAEF,MAAM,MAAM,+BAA+B,GAAG,EAAE,CAAC;AAEjD,MAAM,MAAM,uBAAuB,GAAG;IACpC,KAAK,EAAE,kBAAkB,CAAC,aAAa,CAAC,CAAC;IACzC,WAAW,EAAE,4BAA4B,CAAC;IAC1C,UAAU,EAAE,iBAAiB,CAC3B,aAAa,EACb,iCAAiC,CAClC,CAAC;IACF,MAAM,EAAE,UAAU,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,6BAA6B,GAAG,uBAAuB,CACjE,aAAa,EACb,MAAM,GAAG,SAAS,EAClB,kBAAkB,CAAC,aAAa,CAAC,EACjC,gCAAgC,EAChC,iCAAiC,EACjC,6BAA6B,CAAC,aAAa,CAAC,CAC7C,GACC,gBAAgB,GAChB,+BAA+B,CAAC;AAElC,MAAM,MAAM,gCAAgC,GAAG,iBAAiB,CAC9D,aAAa,EACb,iCAAiC,CAClC,GACC,gBAAgB,CAAC,aAAa,CAAC,CAAC;AAElC,MAAM,MAAM,0BAA0B,GAAG;IACvC;;OAEG;IACH,OAAO,EAAE,gCAAgC,CAAC;IAC1C;;OAEG;IACH,KAAK,EAAE,SAAS,CAAC,aAAa,CAAC,CAAC;IAChC;;OAEG;IACH,UAAU,EAAE,6BAA6B,CAAC,aAAa,CAAC,CAAC;CAC1D,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-navigation/bottom-tabs",
|
|
3
3
|
"description": "Bottom tab navigator following iOS design guidelines",
|
|
4
|
-
"version": "7.7.
|
|
4
|
+
"version": "7.7.1",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react-native-component",
|
|
7
7
|
"react-component",
|
|
@@ -90,5 +90,5 @@
|
|
|
90
90
|
]
|
|
91
91
|
]
|
|
92
92
|
},
|
|
93
|
-
"gitHead": "
|
|
93
|
+
"gitHead": "b24d0210c3131ef3e0eac80098202e994e0e6a99"
|
|
94
94
|
}
|
|
@@ -66,11 +66,6 @@ export function NativeBottomTabView({ state, navigation, descriptors }: Props) {
|
|
|
66
66
|
|
|
67
67
|
const currentOptions = descriptors[state.routes[state.index].key]?.options;
|
|
68
68
|
|
|
69
|
-
const {
|
|
70
|
-
backgroundColor: tabBarBackgroundColor,
|
|
71
|
-
shadowColor: tabBarShadowColor,
|
|
72
|
-
} = currentOptions.tabBarStyle || {};
|
|
73
|
-
|
|
74
69
|
const {
|
|
75
70
|
fontFamily = Platform.select({
|
|
76
71
|
ios: fonts.medium.fontFamily,
|
|
@@ -145,6 +140,7 @@ export function NativeBottomTabView({ state, navigation, descriptors }: Props) {
|
|
|
145
140
|
tabBarItemTitleFontWeight={fontWeight}
|
|
146
141
|
tabBarItemTitleFontSize={fontSize}
|
|
147
142
|
tabBarItemTitleFontSizeActive={fontSize}
|
|
143
|
+
tabBarItemTitleFontStyle={fontStyle}
|
|
148
144
|
tabBarBackgroundColor={currentOptions.tabBarStyle?.backgroundColor}
|
|
149
145
|
tabBarItemActiveIndicatorColor={activeIndicatorColor}
|
|
150
146
|
tabBarItemActiveIndicatorEnabled={
|
|
@@ -192,8 +188,15 @@ export function NativeBottomTabView({ state, navigation, descriptors }: Props) {
|
|
|
192
188
|
tabBarIcon,
|
|
193
189
|
tabBarBadge,
|
|
194
190
|
tabBarSystemItem,
|
|
191
|
+
tabBarBlurEffect,
|
|
192
|
+
tabBarStyle,
|
|
195
193
|
} = options;
|
|
196
194
|
|
|
195
|
+
const {
|
|
196
|
+
backgroundColor: tabBarBackgroundColor,
|
|
197
|
+
shadowColor: tabBarShadowColor,
|
|
198
|
+
} = tabBarStyle || {};
|
|
199
|
+
|
|
197
200
|
const tabTitle =
|
|
198
201
|
// On iOS, `systemItem` already provides a localized label
|
|
199
202
|
// So we should only use `tabBarLabel` if explicitly provided
|
|
@@ -249,6 +252,7 @@ export function NativeBottomTabView({ state, navigation, descriptors }: Props) {
|
|
|
249
252
|
standardAppearance={{
|
|
250
253
|
tabBarBackgroundColor,
|
|
251
254
|
tabBarShadowColor,
|
|
255
|
+
tabBarBlurEffect,
|
|
252
256
|
stacked: {
|
|
253
257
|
normal: tabItemAppearance,
|
|
254
258
|
},
|
package/src/unstable/types.tsx
CHANGED
|
@@ -13,6 +13,7 @@ import type {
|
|
|
13
13
|
import type { ColorValue, ImageSourcePropType, TextStyle } from 'react-native';
|
|
14
14
|
import type { EdgeInsets } from 'react-native-safe-area-context';
|
|
15
15
|
import type {
|
|
16
|
+
BottomTabsScreenBlurEffect,
|
|
16
17
|
BottomTabsSystemItem,
|
|
17
18
|
TabBarControllerMode,
|
|
18
19
|
TabBarItemLabelVisibilityMode,
|
|
@@ -140,7 +141,7 @@ export type NativeBottomTabNavigationOptions = NativeHeaderOptions & {
|
|
|
140
141
|
tabBarSystemItem?: BottomTabsSystemItem;
|
|
141
142
|
|
|
142
143
|
/**
|
|
143
|
-
* Title string of
|
|
144
|
+
* Title string of the tab displayed in the tab bar
|
|
144
145
|
*
|
|
145
146
|
* Overrides the label provided by `tabBarSystemItem` on iOS.
|
|
146
147
|
*
|
|
@@ -150,6 +151,22 @@ export type NativeBottomTabNavigationOptions = NativeHeaderOptions & {
|
|
|
150
151
|
*/
|
|
151
152
|
tabBarLabel?: string;
|
|
152
153
|
|
|
154
|
+
/**
|
|
155
|
+
* Label visibility mode for the tab bar items.
|
|
156
|
+
*
|
|
157
|
+
* The following values are currently supported:
|
|
158
|
+
*
|
|
159
|
+
* - `auto` - the system decides when to show or hide labels
|
|
160
|
+
* - `selected` - labels are shown only for the selected tab
|
|
161
|
+
* - `labeled` - labels are always shown
|
|
162
|
+
* - `unlabeled` - labels are never shown
|
|
163
|
+
*
|
|
164
|
+
* Defaults to `auto`.
|
|
165
|
+
*
|
|
166
|
+
* @platform android
|
|
167
|
+
*/
|
|
168
|
+
tabBarLabelVisibilityMode?: TabBarItemLabelVisibilityMode;
|
|
169
|
+
|
|
153
170
|
/**
|
|
154
171
|
* Style object for the tab label.
|
|
155
172
|
*/
|
|
@@ -160,6 +177,7 @@ export type NativeBottomTabNavigationOptions = NativeHeaderOptions & {
|
|
|
160
177
|
|
|
161
178
|
/**
|
|
162
179
|
* Icon to display for the tab.
|
|
180
|
+
*
|
|
163
181
|
* Showing a different icon for focused tab is only supported on iOS.
|
|
164
182
|
*
|
|
165
183
|
* Overrides the icon provided by `tabBarSystemItem` on iOS.
|
|
@@ -174,7 +192,8 @@ export type NativeBottomTabNavigationOptions = NativeHeaderOptions & {
|
|
|
174
192
|
/**
|
|
175
193
|
* Custom style for the tab bar badge.
|
|
176
194
|
* You can specify a background color or text color here.
|
|
177
|
-
*
|
|
195
|
+
*
|
|
196
|
+
* @platform android
|
|
178
197
|
*/
|
|
179
198
|
tabBarBadgeStyle?: {
|
|
180
199
|
backgroundColor?: ColorValue;
|
|
@@ -192,20 +211,23 @@ export type NativeBottomTabNavigationOptions = NativeHeaderOptions & {
|
|
|
192
211
|
* @platform android
|
|
193
212
|
*/
|
|
194
213
|
tabBarInactiveTintColor?: ColorValue;
|
|
214
|
+
|
|
195
215
|
/**
|
|
196
|
-
*
|
|
216
|
+
* Background color of the active indicator.
|
|
197
217
|
*
|
|
198
218
|
* @platform android
|
|
199
219
|
*/
|
|
200
220
|
tabBarActiveIndicatorColor?: ColorValue;
|
|
221
|
+
|
|
201
222
|
/**
|
|
202
223
|
* Specifies if the active indicator should be used. Defaults to `true`.
|
|
203
224
|
*
|
|
204
225
|
* @platform android
|
|
205
226
|
*/
|
|
206
227
|
tabBarActiveIndicatorEnabled?: boolean;
|
|
228
|
+
|
|
207
229
|
/**
|
|
208
|
-
*
|
|
230
|
+
* Color of tab bar item's ripple effect.
|
|
209
231
|
*
|
|
210
232
|
* @platform android
|
|
211
233
|
*/
|
|
@@ -230,71 +252,81 @@ export type NativeBottomTabNavigationOptions = NativeHeaderOptions & {
|
|
|
230
252
|
};
|
|
231
253
|
|
|
232
254
|
/**
|
|
233
|
-
*
|
|
234
|
-
*
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
/**
|
|
239
|
-
* Whether any nested stack should be popped to top when navigating away from the tab.
|
|
240
|
-
* Defaults to `false`.
|
|
241
|
-
*/
|
|
242
|
-
popToTopOnBlur?: boolean;
|
|
243
|
-
|
|
244
|
-
/**
|
|
245
|
-
* Specifies the label visibility mode for the tab bar items.
|
|
255
|
+
* Blur effect applied to the tab bar when tab screen is selected.
|
|
256
|
+
*
|
|
257
|
+
* Works with backgroundColor's alpha < 1.
|
|
258
|
+
*
|
|
259
|
+
* Only supported on iOS 18 and lower.
|
|
246
260
|
*
|
|
247
261
|
* The following values are currently supported:
|
|
248
262
|
*
|
|
249
|
-
* - `
|
|
250
|
-
* - `
|
|
251
|
-
* -
|
|
252
|
-
* - `unlabeled` - labels are never shown
|
|
263
|
+
* - `none` - disables blur effect
|
|
264
|
+
* - `systemDefault` - uses UIKit's default tab bar blur effect
|
|
265
|
+
* - one of styles mapped from UIKit's UIBlurEffectStyle, e.g. `systemUltraThinMaterial`
|
|
253
266
|
*
|
|
254
|
-
*
|
|
267
|
+
* Defaults to `systemDefault`.
|
|
268
|
+
*
|
|
269
|
+
* Complete list of possible blur effect styles is available in the official UIKit documentation:
|
|
270
|
+
* @see {@link https://developer.apple.com/documentation/uikit/uiblureffect/style|UIBlurEffect.Style}
|
|
271
|
+
*
|
|
272
|
+
* @platform ios
|
|
255
273
|
*/
|
|
256
|
-
|
|
274
|
+
tabBarBlurEffect?: BottomTabsScreenBlurEffect;
|
|
257
275
|
|
|
258
276
|
/**
|
|
259
|
-
*
|
|
277
|
+
* Display mode for the tab bar.
|
|
260
278
|
*
|
|
261
279
|
* Available starting from iOS 18.
|
|
262
280
|
* Not supported on tvOS.
|
|
263
281
|
*
|
|
264
282
|
* The following values are currently supported:
|
|
265
283
|
*
|
|
266
|
-
* - `
|
|
284
|
+
* - `auto` - the system sets the display mode based on the tab’s content
|
|
267
285
|
* - `tabBar` - the system displays the content only as a tab bar
|
|
268
286
|
* - `tabSidebar` - the tab bar is displayed as a sidebar
|
|
269
287
|
*
|
|
270
|
-
*
|
|
271
|
-
* @see {@link https://developer.apple.com/documentation/uikit/uitabbarcontroller/mode|UITabBarController.Mode}
|
|
288
|
+
* Defaults to `auto`.
|
|
272
289
|
*
|
|
273
|
-
* @
|
|
290
|
+
* @see {@link https://developer.apple.com/documentation/uikit/uitabbarcontroller/mode|UITabBarController.Mode}
|
|
274
291
|
*
|
|
275
292
|
* @platform ios
|
|
276
|
-
* @supported iOS 18 or higher, not supported on tvOS
|
|
277
293
|
*/
|
|
278
294
|
tabBarControllerMode?: TabBarControllerMode;
|
|
295
|
+
|
|
279
296
|
/**
|
|
280
|
-
*
|
|
297
|
+
* Minimize behavior for the tab bar.
|
|
298
|
+
*
|
|
299
|
+
* Available starting from iOS 26.
|
|
281
300
|
*
|
|
282
301
|
* The following values are currently supported:
|
|
283
302
|
*
|
|
284
|
-
* - `
|
|
303
|
+
* - `auto` - resolves to the system default minimize behavior
|
|
285
304
|
* - `never` - the tab bar does not minimize
|
|
286
305
|
* - `onScrollDown` - the tab bar minimizes when scrolling down and
|
|
287
306
|
* expands when scrolling back up
|
|
288
307
|
* - `onScrollUp` - the tab bar minimizes when scrolling up and expands
|
|
289
308
|
* when scrolling back down
|
|
290
309
|
*
|
|
310
|
+
* Defaults to `auto`.
|
|
311
|
+
*
|
|
291
312
|
* The supported values correspond to the official UIKit documentation:
|
|
292
313
|
* @see {@link https://developer.apple.com/documentation/uikit/uitabbarcontroller/minimizebehavior|UITabBarController.MinimizeBehavior}
|
|
293
314
|
*
|
|
294
315
|
* @platform ios
|
|
295
|
-
* @supported iOS 26 or higher
|
|
296
316
|
*/
|
|
297
317
|
tabBarMinimizeBehavior?: TabBarMinimizeBehavior;
|
|
318
|
+
|
|
319
|
+
/**
|
|
320
|
+
* Whether this screens should render the first time it's accessed. Defaults to `true`.
|
|
321
|
+
* Set it to `false` if you want to render the screen on initial render.
|
|
322
|
+
*/
|
|
323
|
+
lazy?: boolean;
|
|
324
|
+
|
|
325
|
+
/**
|
|
326
|
+
* Whether any nested stack should be popped to top when navigating away from the tab.
|
|
327
|
+
* Defaults to `false`.
|
|
328
|
+
*/
|
|
329
|
+
popToTopOnBlur?: boolean;
|
|
298
330
|
};
|
|
299
331
|
|
|
300
332
|
export type NativeBottomTabDescriptor = Descriptor<
|