Fix Types for package for react-native-wheel-pick (#47247)

* Add Types for package react-native-base64

* Add Types for package iamport-react-native

* Add Types for package for react-native-wheel-pick

* Fix Types for package for react-native-wheel-pick

Co-authored-by: evan <evanjin@toons.kr>
This commit is contained in:
EvanJin 2020-09-08 21:10:35 +09:00 committed by GitHub
parent 5ec66544a2
commit 9daf3efa5b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -41,16 +41,16 @@ export interface DatePickerProps extends DatePickerAndroidProps, DatePickerIOSPr
style?: StyleProp<ViewStyle>;
}
export interface PickerProps extends ViewProps {
export interface PickerProps<T> extends ViewProps {
textColor?: string;
textSize?: number;
itemSpace?: number;
itemStyle?: StyleProp<ViewStyle>;
onValueChange: (value: string) => void;
pickerData: string[];
onValueChange: (value: T) => void;
pickerData: T[];
style?: StyleProp<ViewStyle>;
selectedValue?: any;
selectedValue?: T;
}
export class Picker extends React.Component<PickerProps> {}
export class Picker<T> extends React.Component<PickerProps<T>> {}
export class DatePicker extends React.PureComponent<DatePickerProps> {}