1.1.6 • Published 11 months ago
@types/react-native-wheel-pick v1.1.6
Installation
npm install --save @types/react-native-wheel-pick
Summary
This package contains type definitions for react-native-wheel-pick (https://github.com/TronNatthakorn/react-native-wheel-pick#readme).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-native-wheel-pick.
index.d.ts
// Type definitions for react-native-wheel-pick 1.1
// Project: https://github.com/TronNatthakorn/react-native-wheel-pick#readme
// Definitions by: seongjoojin <https://github.com/seongjoojin>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
import * as React from 'react';
import { StyleProp, ViewStyle, ViewProps } from 'react-native';
export interface DatePickerIOSProps extends ViewProps {
date?: Date | undefined;
maximumDate?: Date | undefined;
minimumDate?: Date | undefined;
mode?: 'date' | 'time' | 'datetime' | undefined;
onDateChange: (newDate: Date) => void;
}
export interface DatePickerAndroidProps extends ViewProps {
labelUnit?: {
year?: string | undefined;
month?: string[] | undefined;
date?: string | undefined;
} | undefined;
order?: string | undefined;
date?: Date | undefined;
maximumDate?: Date | undefined;
minimumDate?: Date | undefined;
mode?: 'date' | 'time' | 'datetime' | undefined;
onDateChange: (newDate: Date) => void;
style?: StyleProp<ViewStyle> | undefined;
textColor?: string | undefined;
textSize?: number | undefined;
itemSpace?: number | undefined;
}
export interface DatePickerProps extends DatePickerAndroidProps, DatePickerIOSProps {
date?: Date | undefined;
maximumDate?: Date | undefined;
minimumDate?: Date | undefined;
mode?: 'date' | 'time' | 'datetime' | undefined;
onDateChange: (newDate: Date) => void;
style?: StyleProp<ViewStyle> | undefined;
}
export interface PickerProps<T> extends ViewProps {
textColor?: string | undefined;
textSize?: number | undefined;
itemSpace?: number | undefined;
itemStyle?: StyleProp<ViewStyle> | undefined;
onValueChange: (value: T) => void;
pickerData: T[];
style?: StyleProp<ViewStyle> | undefined;
selectedValue?: T | undefined;
}
export class Picker<T> extends React.Component<PickerProps<T>> {}
export class DatePicker extends React.PureComponent<DatePickerProps> {}
Additional Details
- Last updated: Thu, 08 Jul 2021 22:41:21 GMT
- Dependencies: @types/react, @types/react-native
- Global values: none
Credits
These definitions were written by seongjoojin.