File tree 2 files changed +7
-4
lines changed
2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ import type {SyntheticEvent} from 'react-native/Libraries/Types/CoreEventTypes';
22
22
import type { ViewProps } from 'react-native/Libraries/Components/View/ViewPropTypes' ;
23
23
import type {
24
24
ColorValue ,
25
- TextStyleProp ,
25
+ ViewStyleProp ,
26
26
} from 'react-native/Libraries/StyleSheet/StyleSheet' ;
27
27
import type { Element , ChildrenArray } from 'react' ;
28
28
@@ -46,7 +46,7 @@ type Props = $ReadOnly<{|
46
46
...ViewProps ,
47
47
// $FlowFixMe
48
48
children : ChildrenArray < Element < typeof PickerIOSItem >> ,
49
- itemStyle ?: ?TextStyleProp ,
49
+ itemStyle ?: ?ViewStyleProp ,
50
50
numberOfLines : ?number ,
51
51
onChange ?: ?( event : PickerIOSChangeEvent ) => mixed ,
52
52
onValueChange ?: ?( itemValue : string | number , itemIndex : number ) => mixed ,
Original file line number Diff line number Diff line change @@ -21,7 +21,10 @@ import type {SyntheticEvent} from 'react-native/Libraries/Types/CoreEventTypes';
21
21
import type { ColorValue } from 'react-native/Libraries/StyleSheet/StyleSheet' ;
22
22
import type { ProcessedColorValue } from 'react-native/Libraries/StyleSheet/processColor' ;
23
23
import type { ViewProps } from 'react-native/Libraries/Components/View/ViewPropTypes' ;
24
- import type { TextStyleProp } from 'react-native/Libraries/StyleSheet/StyleSheet' ;
24
+ import type {
25
+ ViewStyleProp ,
26
+ TextStyleProp ,
27
+ } from 'react-native/Libraries/StyleSheet/StyleSheet' ;
25
28
import type { Element , ElementRef , ChildrenArray } from 'react' ;
26
29
import type { HostComponent } from 'react-native/Libraries/Renderer/shims/ReactNativeTypes' ;
27
30
@@ -55,7 +58,7 @@ type Props = $ReadOnly<{|
55
58
...ViewProps ,
56
59
// $FlowFixMe
57
60
children : ChildrenArray < Element < typeof PickerMacOSItem >> ,
58
- itemStyle ?: ?TextStyleProp ,
61
+ itemStyle ?: ?ViewStyleProp ,
59
62
onChange ?: ?( event : PickerMacOSChangeEvent ) => mixed ,
60
63
onValueChange ?: ?( itemValue : string | number , itemIndex : number ) => mixed ,
61
64
selectedValue : ?( number | string ) ,
You can’t perform that action at this time.
0 commit comments