Skip to content

Commit

Permalink
bugfix: remove TabController.TabBar defaultProps, use JavaScript defa…
Browse files Browse the repository at this point in the history
…ult parameters instead. (#3155)

Co-authored-by: Spring Xue <springx@panda-eu.com>
crazyshakalaka and Spring Xue authored Aug 1, 2024
1 parent dfdb5f5 commit 6c5f8b2
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions src/components/tabController/TabBar.tsx
Original file line number Diff line number Diff line change
@@ -142,19 +142,19 @@ const TabBar = (props: Props) => {
enableShadow,
shadowStyle: propsShadowStyle,
indicatorStyle,
labelStyle,
selectedLabelStyle,
labelStyle = DEFAULT_LABEL_STYLE,
selectedLabelStyle = DEFAULT_SELECTED_LABEL_STYLE,
labelColor,
selectedLabelColor,
uppercase,
iconColor,
selectedIconColor,
activeBackgroundColor,
backgroundColor = Colors.$backgroundElevated,
faderProps,
faderProps = DEFAULT_FADER_PROPS,
containerWidth: propsContainerWidth,
centerSelected,
spreadItems,
spreadItems = true,
indicatorInsets = Spacings.s4,
indicatorWidth,
containerStyle,
@@ -319,12 +319,6 @@ const TabBar = (props: Props) => {
};

TabBar.displayName = 'TabController.TabBar';
TabBar.defaultProps = {
labelStyle: DEFAULT_LABEL_STYLE,
selectedLabelStyle: DEFAULT_SELECTED_LABEL_STYLE,
faderProps: DEFAULT_FADER_PROPS,
spreadItems: true
};

const styles = StyleSheet.create({
container: {

0 comments on commit 6c5f8b2

Please sign in to comment.