File tree 4 files changed +8
-6
lines changed
4 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -112,6 +112,11 @@ type SegmentedControlIOSProps = $ReadOnly<{|
112
112
* Text color of the control.
113
113
*/
114
114
textColor?: ? string,
115
+ /**
116
+ * Text color of the control when selected.
117
+ * NOTE: this prop will only work for iOS >= 13
118
+ */
119
+ activeTextColor?: ? string,
115
120
/**
116
121
* (For iOS >= 13)
117
122
* Background color of the control.
Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ - (void)setTextColor:(UIColor *)textColor
60
60
#endif
61
61
}
62
62
63
- - (void )setSelectedTextColor : (UIColor *)textColor
63
+ - (void )setActiveTextColor : (UIColor *)textColor
64
64
{
65
65
#if defined(__IPHONE_OS_VERSION_MAX_ALLOWED) && defined(__IPHONE_13_0) && \
66
66
__IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_13_0
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ - (UIView *)view
25
25
RCT_EXPORT_VIEW_PROPERTY(tintColor, UIColor)
26
26
RCT_EXPORT_VIEW_PROPERTY(backgroundColor, UIColor)
27
27
RCT_EXPORT_VIEW_PROPERTY(textColor, UIColor)
28
- RCT_EXPORT_VIEW_PROPERTY(selectedTextColor , UIColor)
28
+ RCT_EXPORT_VIEW_PROPERTY(activeTextColor , UIColor)
29
29
RCT_EXPORT_VIEW_PROPERTY(momentary, BOOL )
30
30
RCT_EXPORT_VIEW_PROPERTY(enabled, BOOL )
31
31
RCT_EXPORT_VIEW_PROPERTY(onChange, RCTBubblingEventBlock)
Original file line number Diff line number Diff line change @@ -52,23 +52,20 @@ export type SegmentedControlIOSProps = $ReadOnly<{|
52
52
*/
53
53
tintColor ?: ?string ,
54
54
/**
55
- *
56
55
* Text color of the control.
57
56
* NOTE: this prop will only work for iOS >= 13
58
57
*/
59
58
textColor ?: ?string ,
60
59
/**
61
- *
62
60
* Text color of the control when selected.
63
61
* NOTE: this prop will only work for iOS >= 13
64
62
*/
65
- selectedTextColor ?: ?string ,
63
+ activeTextColor ?: ?string ,
66
64
/**
67
65
* Background color of the control.
68
66
* NOTE: this prop will only work for iOS >= 13
69
67
*/
70
68
backgroundColor ?: ?string ,
71
- /**
72
69
/**
73
70
* If true, then selecting a segment won't persist visually.
74
71
* The `onValueChange` callback will still work as expected.
You can’t perform that action at this time.
0 commit comments