File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ interface SegmentedControlProps {
22
22
style ?: StyleProp < ViewStyle > ;
23
23
tabStyle ?: StyleProp < ViewStyle > | ( ( index : number ) => StyleProp < ViewStyle > ) ;
24
24
textStyle ?: StyleProp < TextStyle > ;
25
+ activeTextStyle ?: StyleProp < TextStyle > ;
25
26
selectedTabStyle ?: StyleProp < ViewStyle > ;
26
27
onChange : ( index : number ) => void ;
27
28
value ?: number ;
@@ -34,6 +35,7 @@ const SegmentedControl: React.FC<SegmentedControlProps> = ({
34
35
value,
35
36
tabStyle,
36
37
textStyle,
38
+ activeTextStyle,
37
39
selectedTabStyle,
38
40
initialIndex = 0 ,
39
41
gap = 2 ,
@@ -121,6 +123,7 @@ const SegmentedControl: React.FC<SegmentedControlProps> = ({
121
123
style = { [
122
124
styles . textStyle ,
123
125
textStyle ,
126
+ isActiveTab && activeTextStyle ,
124
127
isActiveTab && { color : activeTextColor } ,
125
128
] }
126
129
>
You can’t perform that action at this time.
0 commit comments