Skip to content

Commit 7d07cf2

Browse files
committed
remove static default backgroundColor prop (#2849)
1 parent f354b6f commit 7d07cf2

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/components/tabController/TabBar.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ import {useDidUpdate} from 'hooks';
2020

2121
const FIX_RTL = Constants.isRTL && Constants.isAndroid;
2222
const DEFAULT_HEIGHT = 48;
23-
const DEFAULT_BACKGROUND_COLOR = Colors.$backgroundElevated;
2423

2524
const DEFAULT_LABEL_STYLE = {
2625
...Typography.text80M,
@@ -151,7 +150,7 @@ const TabBar = (props: Props) => {
151150
iconColor,
152151
selectedIconColor,
153152
activeBackgroundColor,
154-
backgroundColor,
153+
backgroundColor = Colors.$backgroundElevated,
155154
faderProps,
156155
containerWidth: propsContainerWidth,
157156
centerSelected,
@@ -322,7 +321,6 @@ TabBar.displayName = 'TabController.TabBar';
322321
TabBar.defaultProps = {
323322
labelStyle: DEFAULT_LABEL_STYLE,
324323
selectedLabelStyle: DEFAULT_SELECTED_LABEL_STYLE,
325-
backgroundColor: DEFAULT_BACKGROUND_COLOR,
326324
faderProps: DEFAULT_FADER_PROPS,
327325
spreadItems: true
328326
};

0 commit comments

Comments
 (0)