-
Notifications
You must be signed in to change notification settings - Fork 240
/
index.d.ts
58 lines (51 loc) · 1.38 KB
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
import React from 'react';
import { DatePickerIOSProps, StyleProp, ViewStyle } from 'react-native';
interface IStyle {
selectedItemTextColor?: string;
selectedItemTextSize?: number;
selectedItemTextFontFamily: string;
itemTextColor?: string;
itemTextSize?: number;
itemTextFontFamily: string;
indicatorColor?: string;
hideIndicator?: boolean;
indicatorWidth?: number;
backgroundColor?: string;
style?: StyleProp<ViewStyle>;
}
export interface IPropsWheelPicker extends IStyle {
data: string[];
isCyclic?: boolean;
initPosition?: number;
selectedItem?: number;
onItemSelected?: (res: number) => void;
}
export class WheelPicker extends React.Component<IPropsWheelPicker> {
}
export interface IPropsTimePicker extends IStyle {
initDate?: string;
hours?: number[];
minutes?: string[];
format24?: boolean;
onTimeSelected?: (res: Date) => void;
}
export class TimePicker extends React.Component<IPropsTimePicker> {
constructor(props: IPropsTimePicker);
}
export interface IPropsDatePicker extends DatePickerIOSProps {
initDate?: Date;
days?: string[];
hours?: string[];
minutes?: string[];
format24?: boolean;
startDate?: Date;
daysCount?: number;
hideDate?: boolean;
hideHours?: boolean;
hideMinutes?: boolean;
hideAM?: boolean;
onDateSelected?: (res: Date) => void;
}
export class DatePicker extends React.Component<IPropsDatePicker> {
constructor(props: IPropsDatePicker);
}