File tree Expand file tree Collapse file tree 1 file changed +4
-10
lines changed
src/components/tabController Expand file tree Collapse file tree 1 file changed +4
-10
lines changed Original file line number Diff line number Diff line change @@ -142,19 +142,19 @@ const TabBar = (props: Props) => {
142
142
enableShadow,
143
143
shadowStyle : propsShadowStyle ,
144
144
indicatorStyle,
145
- labelStyle,
146
- selectedLabelStyle,
145
+ labelStyle = DEFAULT_LABEL_STYLE ,
146
+ selectedLabelStyle = DEFAULT_SELECTED_LABEL_STYLE ,
147
147
labelColor,
148
148
selectedLabelColor,
149
149
uppercase,
150
150
iconColor,
151
151
selectedIconColor,
152
152
activeBackgroundColor,
153
153
backgroundColor = Colors . $backgroundElevated ,
154
- faderProps,
154
+ faderProps = DEFAULT_FADER_PROPS ,
155
155
containerWidth : propsContainerWidth ,
156
156
centerSelected,
157
- spreadItems,
157
+ spreadItems = true ,
158
158
indicatorInsets = Spacings . s4 ,
159
159
indicatorWidth,
160
160
containerStyle,
@@ -319,12 +319,6 @@ const TabBar = (props: Props) => {
319
319
} ;
320
320
321
321
TabBar . displayName = 'TabController.TabBar' ;
322
- TabBar . defaultProps = {
323
- labelStyle : DEFAULT_LABEL_STYLE ,
324
- selectedLabelStyle : DEFAULT_SELECTED_LABEL_STYLE ,
325
- faderProps : DEFAULT_FADER_PROPS ,
326
- spreadItems : true
327
- } ;
328
322
329
323
const styles = StyleSheet . create ( {
330
324
container : {
You can’t perform that action at this time.
0 commit comments