mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-02-27 11:12:45 +00:00
[react-native-datepicker] add typings for version 1.6
This commit is contained in:
parent
94845f2eda
commit
4e59af1992
10
types/react-native-datepicker/index.d.ts
vendored
10
types/react-native-datepicker/index.d.ts
vendored
@ -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 <https://github.com/jacobbaskin>
|
||||
// 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<DatePickerProps> {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user