diff --git a/types/react-native-datepicker/index.d.ts b/types/react-native-datepicker/index.d.ts index 929acdc375..365fb6ced6 100644 --- a/types/react-native-datepicker/index.d.ts +++ b/types/react-native-datepicker/index.d.ts @@ -6,11 +6,12 @@ import * as React from 'react'; import { ImageURISource } from 'react-native'; +import * as moment from 'moment'; export interface DatePickerProps { mode?: 'date' | 'datetime' | 'time'; androidMode?: 'default' | 'calendar' | 'spinner'; - date?: string | Date; + date?: string | Date | moment.Moment; format?: string; iconSource?: ImageURISource; iconComponent?: JSX.Element; diff --git a/types/react-native-datepicker/package.json b/types/react-native-datepicker/package.json new file mode 100644 index 0000000000..19e5fb0d14 --- /dev/null +++ b/types/react-native-datepicker/package.json @@ -0,0 +1,6 @@ +{ + "private": true, + "dependencies": { + "moment": ">=2.14.0" + } +}