mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
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:
parent
5ec66544a2
commit
9daf3efa5b
10
types/react-native-wheel-pick/index.d.ts
vendored
10
types/react-native-wheel-pick/index.d.ts
vendored
@ -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> {}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user