@@ -14,6 +14,7 @@ import {requireNativeComponent} from 'react-native';
14
14
import type { ViewProps } from 'react-native/Libraries/Components/View/ViewPropTypes' ;
15
15
import type { SyntheticEvent } from 'react-native/Libraries/Types/CoreEventTypes' ;
16
16
import type { NativeComponent } from 'react-native/Libraries/Renderer/shims/ReactNative' ;
17
+ import type { ColorValue } from 'react-native/Libraries/StyleSheet/StyleSheetTypes' ;
17
18
18
19
type Event = SyntheticEvent <
19
20
$ReadOnly < { |
@@ -50,22 +51,22 @@ export type SegmentedControlIOSProps = $ReadOnly<{|
50
51
/**
51
52
* Accent color of the control.
52
53
*/
53
- tintColor ?: ?string ,
54
+ tintColor ?: ?ColorValue ,
54
55
/**
55
56
* Text color of the control.
56
57
* NOTE: this prop will only work for iOS >= 13
57
58
*/
58
- textColor ?: ?string ,
59
+ textColor ?: ?ColorValue ,
59
60
/**
60
61
* Text color of the control when selected.
61
62
* NOTE: this prop will only work for iOS >= 13
62
63
*/
63
- activeTextColor ?: ?string ,
64
+ activeTextColor ?: ?ColorValue ,
64
65
/**
65
66
* Background color of the control.
66
67
* NOTE: this prop will only work for iOS >= 13
67
68
*/
68
- backgroundColor ?: ?string ,
69
+ backgroundColor ?: ?ColorValue ,
69
70
/**
70
71
* If true, then selecting a segment won't persist visually.
71
72
* The `onValueChange` callback will still work as expected.
0 commit comments