mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-06-28 14:20:12 +00:00
Add Moment to react-native-datepicker types
This commit is contained in:
3
types/react-native-datepicker/index.d.ts
vendored
3
types/react-native-datepicker/index.d.ts
vendored
@@ -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;
|
||||
|
||||
6
types/react-native-datepicker/package.json
Normal file
6
types/react-native-datepicker/package.json
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"private": true,
|
||||
"dependencies": {
|
||||
"moment": ">=2.14.0"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user