File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Expand file tree Collapse file tree 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';
2222import type { ViewProps } from 'react-native/Libraries/Components/View/ViewPropTypes' ;
2323import type {
2424 ColorValue ,
25- TextStyleProp ,
25+ ViewStyleProp ,
2626} from 'react-native/Libraries/StyleSheet/StyleSheet' ;
2727import type { Element , ChildrenArray } from 'react' ;
2828
@@ -46,7 +46,7 @@ type Props = $ReadOnly<{|
4646 ...ViewProps ,
4747 // $FlowFixMe
4848 children : ChildrenArray < Element < typeof PickerIOSItem >> ,
49- itemStyle ?: ?TextStyleProp ,
49+ itemStyle ?: ?ViewStyleProp ,
5050 numberOfLines : ?number ,
5151 onChange ?: ?( event : PickerIOSChangeEvent ) => mixed ,
5252 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';
2121import type { ColorValue } from 'react-native/Libraries/StyleSheet/StyleSheet' ;
2222import type { ProcessedColorValue } from 'react-native/Libraries/StyleSheet/processColor' ;
2323import 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' ;
2528import type { Element , ElementRef , ChildrenArray } from 'react' ;
2629import type { HostComponent } from 'react-native/Libraries/Renderer/shims/ReactNativeTypes' ;
2730
@@ -55,7 +58,7 @@ type Props = $ReadOnly<{|
5558 ...ViewProps ,
5659 // $FlowFixMe
5760 children : ChildrenArray < Element < typeof PickerMacOSItem >> ,
58- itemStyle ?: ?TextStyleProp ,
61+ itemStyle ?: ?ViewStyleProp ,
5962 onChange ?: ?( event : PickerMacOSChangeEvent ) => mixed ,
6063 onValueChange ?: ?( itemValue : string | number , itemIndex : number ) => mixed ,
6164 selectedValue : ?( number | string ) ,
You can’t perform that action at this time.
0 commit comments