-
Notifications
You must be signed in to change notification settings - Fork 5
/
index.d.ts
43 lines (39 loc) · 1.37 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
// Type definitions for react-native-modal-dropdown 0.6
// Project: https://github.com/sohobloo/react-native-modal-dropdown
// Definitions by: Carlos Li <https://github.com/echoulen>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.8
import * as React from 'react';
import HorizontalDatePicker = RNHorizontalDatePicker.HorizontalDatePicker;
export = HorizontalDatePicker;
declare namespace RNHorizontalDatePicker {
interface HorizontalDatePickerProps {
pickerType?: 'date' | 'time' | 'datetime';
minDate?: Date;
maxDate?: Date;
defaultSelected?: Date;
isShowYear?: boolean;
yearContainerStyle?: any;
yearTextStyle?: any;
selectedTextStyle?: any;
unSelectedTextStyle?: any;
datePickerContainerStyle?: any;
timePickerContainerStyle?: any;
datePickerBG?: any;
timePikerBG?: any;
dayFormat?: string;
monthFormat?: string;
yearFormat?: string;
timeFormat?: string;
timeStep?: number;
returnDateFormat?: string;
returnTimeFormat?: string;
returnDateTimeFormat?: string;
onDateSelected?: (selectedDate: string) => void;
onTimeSelected?: (selectedTime: string) => void;
onDateTimeSelected?: (selectedDateTime: object) => void;
}
class HorizontalDatePicker extends React.Component<HorizontalDatePickerProps> {
static default: typeof HorizontalDatePicker;
}
}