Skip to content

Commit 4eb9800

Browse files
authored
fix: flowtype error (#563)
1 parent c23b9b2 commit 4eb9800

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

js/PickerIOS.ios.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import type {SyntheticEvent} from 'react-native/Libraries/Types/CoreEventTypes';
2222
import type {ViewProps} from 'react-native/Libraries/Components/View/ViewPropTypes';
2323
import type {
2424
ColorValue,
25-
TextStyleProp,
25+
ViewStyleProp,
2626
} from 'react-native/Libraries/StyleSheet/StyleSheet';
2727
import 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,

js/PickerMacOS.macos.js

+5-2
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,10 @@ import type {SyntheticEvent} from 'react-native/Libraries/Types/CoreEventTypes';
2121
import type {ColorValue} from 'react-native/Libraries/StyleSheet/StyleSheet';
2222
import type {ProcessedColorValue} from 'react-native/Libraries/StyleSheet/processColor';
2323
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';
2528
import type {Element, ElementRef, ChildrenArray} from 'react';
2629
import 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),

0 commit comments

Comments
 (0)