@@ -32,12 +32,12 @@ export default function TabViewExample() {
32
32
{
33
33
key: ' home' ,
34
34
title: ' Home' ,
35
- focusedIcon: { sfSymbol: ' house' }
35
+ focusedIcon: { sfSymbol: ' house' },
36
36
},
37
37
{
38
38
key: ' settings' ,
39
39
title: ' Settings' ,
40
- focusedIcon: { sfSymbol: ' gear' }
40
+ focusedIcon: { sfSymbol: ' gear' },
41
41
},
42
42
]);
43
43
@@ -91,6 +91,7 @@ const renderScene = SceneMap({
91
91
#### ` navigationState `
92
92
93
93
State for the tab view. The state should contain:
94
+
94
95
- ` routes ` : Array of route objects containing ` key ` and ` title ` props
95
96
- ` index ` : Current selected tab index
96
97
@@ -107,13 +108,15 @@ Callback that is called when the tab index changes.
107
108
#### ` labeled `
108
109
109
110
Whether to show labels in tabs. When ` false ` , only icons will be displayed.
111
+
110
112
- Type: ` boolean `
111
113
- Default <Badge text =" iOS " type =" info " />: ` true `
112
114
- Default <Badge text =" Android " type =" info " />: ` false `
113
115
114
116
#### ` sidebarAdaptable ` <Badge text =" iOS " type =" info " />
115
117
116
118
A tab bar style that adapts to each platform:
119
+
117
120
- iPadOS: Top tab bar that can adapt into a sidebar
118
121
- iOS: Bottom tab bar
119
122
- macOS/tvOS: Sidebar
@@ -122,38 +125,43 @@ A tab bar style that adapts to each platform:
122
125
#### ` disablePageAnimations ` <Badge text =" iOS " type =" info " />
123
126
124
127
Whether to disable animations between tabs.
128
+
125
129
- Type: ` boolean `
126
130
127
131
#### ` hapticFeedbackEnabled `
128
132
129
133
Whether to enable haptic feedback on tab press.
134
+
130
135
- Type: ` boolean `
131
136
- Default: ` false `
132
137
133
-
134
138
#### ` tabLabelStyle `
135
139
136
140
Object containing styles for the tab label.
137
141
Supported properties:
142
+
138
143
- ` fontFamily `
139
144
- ` fontSize `
140
145
- ` fontWeight `
141
146
142
147
#### ` scrollEdgeAppearance ` <Badge text =" iOS " type =" info " />
143
148
144
149
Appearance attributes for the tab bar when a scroll view is at the bottom.
150
+
145
151
- Type: ` 'default' | 'opaque' | 'transparent' `
146
152
147
153
#### ` minimizeBehavior ` <Badge text =" iOS 26+ " type =" info " />
148
154
149
155
Controls how the tab bar behaves when content is scrolled.
156
+
150
157
- Type: ` 'automatic' | 'onScrollDown' | 'onScrollUp' | 'never' `
151
158
- Default: ` undefined ` (uses system default)
152
159
153
160
Options:
161
+
154
162
- ` automatic ` : Platform determines the behavior
155
163
- ` onScrollDown ` : Tab bar minimizes when scrolling down
156
- - ` onScrollUp ` : Tab bar minimizes when scrolling up
164
+ - ` onScrollUp ` : Tab bar minimizes when scrolling up
157
165
- ` never ` : Tab bar never minimizes
158
166
159
167
::: note
@@ -163,6 +171,7 @@ This feature requires iOS 26.0 or later and is only available on iOS. On older v
163
171
#### ` tabBarActiveTintColor `
164
172
165
173
Color for the active tab.
174
+
166
175
- Type: ` ColorValue `
167
176
168
177
#### ` tabBarInactiveTintColor `
@@ -182,11 +191,13 @@ Supported properties:
182
191
#### ` translucent ` <Badge text =" iOS " type =" info " />
183
192
184
193
Whether the tab bar is translucent.
194
+
185
195
- Type: ` boolean `
186
196
187
197
#### ` activeIndicatorColor ` <Badge text =" Android " type =" info " />
188
198
189
199
Color of tab indicator.
200
+
190
201
- Type: ` ColorValue `
191
202
192
203
### Route Configuration
@@ -207,21 +218,29 @@ Each route in the `routes` array can have the following properties:
207
218
#### ` getLazy `
208
219
209
220
Function to determine if a screen should be lazy loaded.
221
+
210
222
- Default: Uses ` route.lazy `
211
223
212
224
#### ` getLabelText `
213
225
214
226
Function to get the label text for a tab.
227
+
215
228
- Default: Uses ` route.title `
216
229
217
230
#### ` getBadge `
218
231
219
232
Function to get the badge text for a tab.
233
+
220
234
- Default: Uses ` route.badge `
221
235
236
+ ::: warning
237
+ To display a badge without text (just a dot), you need to pass a string with a space character (` " " ` ).
238
+ :::
239
+
222
240
#### ` getActiveTintColor `
223
241
224
242
Function to get the active tint color for a tab.
243
+
225
244
- Default: Uses ` route.activeTintColor `
226
245
227
246
#### ` getIcon `
@@ -230,7 +249,6 @@ Function to get the icon for a tab.
230
249
231
250
- Default: Uses ` route.focusedIcon ` and ` route.unfocusedIcon `
232
251
233
-
234
252
#### ` getHidden `
235
253
236
254
Function to determine if a tab should be hidden.
@@ -240,4 +258,5 @@ Function to determine if a tab should be hidden.
240
258
#### ` getTestID `
241
259
242
260
Function to get the test ID for a tab item.
261
+
243
262
- Default: Uses ` route.testID `
0 commit comments