Skip to content

Commit 36a60ec

Browse files
authored
TabController - TabBar - add scrollViewStyle (#1351)
1 parent 05b9bc9 commit 36a60ec

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/components/tabController/TabBar.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,10 @@ export interface TabControllerBarProps {
116116
* Additional styles for the container
117117
*/
118118
containerStyle?: StyleProp<ViewStyle>;
119+
/**
120+
* Additional styles for the ScrollView
121+
*/
122+
scrollViewStyle?: StyleProp<ViewStyle>;
119123
/**
120124
* Used as a testing identifier
121125
*/
@@ -154,6 +158,7 @@ const TabBar = (props: Props) => {
154158
containerWidth: propsContainerWidth,
155159
centerSelected,
156160
containerStyle,
161+
scrollViewStyle,
157162
testID,
158163
children: propsChildren
159164
} = props;
@@ -368,6 +373,7 @@ const TabBar = (props: Props) => {
368373
testID={testID}
369374
onContentSizeChange={onContentSizeChange}
370375
onLayout={onLayout}
376+
style={scrollViewStyle}
371377
>
372378
<View style={indicatorContainerStyle}>{renderTabBarItems}</View>
373379
{selectedIndicator}

0 commit comments

Comments
 (0)