Skip to content

Commit

Permalink
fix: flowtype error (#563)
Browse files Browse the repository at this point in the history
  • Loading branch information
Naturalclar committed Apr 10, 2024
1 parent c23b9b2 commit 4eb9800
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions js/PickerIOS.ios.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import type {SyntheticEvent} from 'react-native/Libraries/Types/CoreEventTypes';
import type {ViewProps} from 'react-native/Libraries/Components/View/ViewPropTypes';
import type {
ColorValue,
TextStyleProp,
ViewStyleProp,
} from 'react-native/Libraries/StyleSheet/StyleSheet';
import type {Element, ChildrenArray} from 'react';

Expand All @@ -46,7 +46,7 @@ type Props = $ReadOnly<{|
...ViewProps,
// $FlowFixMe
children: ChildrenArray<Element<typeof PickerIOSItem>>,
itemStyle?: ?TextStyleProp,
itemStyle?: ?ViewStyleProp,
numberOfLines: ?number,
onChange?: ?(event: PickerIOSChangeEvent) => mixed,
onValueChange?: ?(itemValue: string | number, itemIndex: number) => mixed,
Expand Down
7 changes: 5 additions & 2 deletions js/PickerMacOS.macos.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@ import type {SyntheticEvent} from 'react-native/Libraries/Types/CoreEventTypes';
import type {ColorValue} from 'react-native/Libraries/StyleSheet/StyleSheet';
import type {ProcessedColorValue} from 'react-native/Libraries/StyleSheet/processColor';
import type {ViewProps} from 'react-native/Libraries/Components/View/ViewPropTypes';
import type {TextStyleProp} from 'react-native/Libraries/StyleSheet/StyleSheet';
import type {
ViewStyleProp,
TextStyleProp,
} from 'react-native/Libraries/StyleSheet/StyleSheet';
import type {Element, ElementRef, ChildrenArray} from 'react';
import type {HostComponent} from 'react-native/Libraries/Renderer/shims/ReactNativeTypes';

Expand Down Expand Up @@ -55,7 +58,7 @@ type Props = $ReadOnly<{|
...ViewProps,
// $FlowFixMe
children: ChildrenArray<Element<typeof PickerMacOSItem>>,
itemStyle?: ?TextStyleProp,
itemStyle?: ?ViewStyleProp,
onChange?: ?(event: PickerMacOSChangeEvent) => mixed,
onValueChange?: ?(itemValue: string | number, itemIndex: number) => mixed,
selectedValue: ?(number | string),
Expand Down

0 comments on commit 4eb9800

Please sign in to comment.