Skip to content

Commit 6c62a37

Browse files
committed
Merge branch 'master' into version-2.1.0
2 parents 2a80b76 + 4723846 commit 6c62a37

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

example/lib/SegmentedControl.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ interface SegmentedControlProps {
2222
style?: StyleProp<ViewStyle>;
2323
tabStyle?: StyleProp<ViewStyle> | ((index: number) => StyleProp<ViewStyle>);
2424
textStyle?: StyleProp<TextStyle>;
25+
activeTextStyle?: StyleProp<TextStyle>;
2526
selectedTabStyle?: StyleProp<ViewStyle>;
2627
onChange: (index: number) => void;
2728
value?: number;
@@ -34,6 +35,7 @@ const SegmentedControl: React.FC<SegmentedControlProps> = ({
3435
value,
3536
tabStyle,
3637
textStyle,
38+
activeTextStyle,
3739
selectedTabStyle,
3840
initialIndex = 0,
3941
gap = 2,
@@ -121,6 +123,7 @@ const SegmentedControl: React.FC<SegmentedControlProps> = ({
121123
style={[
122124
styles.textStyle,
123125
textStyle,
126+
isActiveTab && activeTextStyle,
124127
isActiveTab && { color: activeTextColor },
125128
]}
126129
>

0 commit comments

Comments
 (0)