File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
src/components/tabController Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -116,6 +116,10 @@ export interface TabControllerBarProps {
116
116
* Additional styles for the container
117
117
*/
118
118
containerStyle ?: StyleProp < ViewStyle > ;
119
+ /**
120
+ * Additional styles for the ScrollView
121
+ */
122
+ scrollViewStyle ?: StyleProp < ViewStyle > ;
119
123
/**
120
124
* Used as a testing identifier
121
125
*/
@@ -154,6 +158,7 @@ const TabBar = (props: Props) => {
154
158
containerWidth : propsContainerWidth ,
155
159
centerSelected,
156
160
containerStyle,
161
+ scrollViewStyle,
157
162
testID,
158
163
children : propsChildren
159
164
} = props ;
@@ -368,6 +373,7 @@ const TabBar = (props: Props) => {
368
373
testID = { testID }
369
374
onContentSizeChange = { onContentSizeChange }
370
375
onLayout = { onLayout }
376
+ style = { scrollViewStyle }
371
377
>
372
378
< View style = { indicatorContainerStyle } > { renderTabBarItems } </ View >
373
379
{ selectedIndicator }
You can’t perform that action at this time.
0 commit comments