File tree 4 files changed +20
-0
lines changed
4 files changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -241,6 +241,15 @@ An object container
241
241
242
242
Extends [ ViewStyles] ( https://reactnative.dev/docs/view-style-props )
243
243
244
+ ### ` sliderStyle `
245
+
246
+ (Android and Web only) Styles the slider component (Animated.View)
247
+ | Type | Required | Platform |
248
+ | ------ | -------- | -------- |
249
+ | object | No | Android, Web |
250
+
251
+ Extends [ ViewStyles] ( https://reactnative.dev/docs/view-style-props )
252
+
244
253
## Tips and Tricks
245
254
246
255
### How can I increase the height of the tab ?
Original file line number Diff line number Diff line change @@ -111,6 +111,11 @@ export interface SegmentedControlProps extends ViewProps {
111
111
* Touchable style properties for Segmented Control Tab
112
112
*/
113
113
tabStyle ?: ViewStyle ;
114
+
115
+ /**
116
+ * Style properties for the Animated.View component
117
+ */
118
+ sliderStyle ?: ViewStyle ;
114
119
}
115
120
116
121
/**
Original file line number Diff line number Diff line change @@ -38,6 +38,7 @@ const SegmentedControl = ({
38
38
appearance,
39
39
accessibilityHintSeperator = 'out of' ,
40
40
testIDS,
41
+ sliderStyle,
41
42
} : SegmentedControlProps ) : React . Node => {
42
43
const colorSchemeHook = useColorScheme ( ) ;
43
44
const colorScheme = appearance || colorSchemeHook ;
@@ -118,6 +119,7 @@ const SegmentedControl = ({
118
119
backgroundColor :
119
120
tintColor || ( colorScheme === 'dark' ? '#636366' : 'white' ) ,
120
121
} ,
122
+ sliderStyle ,
121
123
] }
122
124
/>
123
125
) : null }
Original file line number Diff line number Diff line change @@ -112,4 +112,8 @@ export type SegmentedControlProps = $ReadOnly<{|
112
112
* array testID to each segment button
113
113
*/
114
114
testIDS : $ReadOnlyArray < string > ,
115
+ /**
116
+ * Style properties for the slider component (Animated.View)
117
+ */
118
+ sliderStyle ?: ViewStyle ,
115
119
| } > ;
You can’t perform that action at this time.
0 commit comments