diff --git a/types/react-native-datepicker/index.d.ts b/types/react-native-datepicker/index.d.ts index 7d2fd0c21e..548de52db4 100644 --- a/types/react-native-datepicker/index.d.ts +++ b/types/react-native-datepicker/index.d.ts @@ -1,16 +1,20 @@ -// Type definitions for react-native-datepicker 1.4 +// Type definitions for react-native-datepicker 1.6 // Project: https://github.com/xgfe/react-native-datepicker // Definitions by: Jacob Baskin // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 import * as React from 'react'; +import { ImageURISource } from 'react-native'; export interface DatePickerProps { mode?: 'date' | 'datetime' | 'time'; androidMode?: 'default' | 'calendar' | 'spinner'; date?: string | Date; format?: string; + iconSource?: ImageURISource; + iconComponent?: JSX.Element; + hideText?: boolean; minDate?: string | Date; maxDate?: string | Date; height?: number; @@ -20,12 +24,16 @@ export interface DatePickerProps { showIcon?: boolean; disabled?: boolean; onDateChange?(dateStr: string, date: Date): void; + onOpenModal?: () => void; + onCloseModal?: () => void; + onPressMask?: () => void; placeholder?: string; modalOnResponderTerminationRequest?(e: any): boolean; is24Hour?: boolean; style?: any; customStyles?: any; minuteInterval?: number; + TouchableComponent?: React.Component; } declare class DatePicker extends React.Component {