Skip to content

Commit 5e7c0ad

Browse files
authored
Allow Moments to be passed in
1 parent 7d727c0 commit 5e7c0ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ You can check [index.js](https://github.com/xgfe/react-native-datepicker/blob/ma
7070
| Prop | Default | Type | Description |
7171
| :------------ |:---------------:| :---------------:| :-----|
7272
| style | - | `object` | Specify the style of the DatePicker, eg. width, height... |
73-
| date | - | <code>string &#124; date</code> | Specify the display date of DatePicker. `string` type value must match the specified format |
73+
| date | - | <code>string &#124; date &#124; Moment instance</code> | Specify the display date of DatePicker. `string` type value must match the specified format |
7474
| mode | 'date' | `enum` | The `enum` of `date`, `datetime` and `time` |
7575
| androidMode | 'default' | `enum` | The `enum` of `default`, `calendar` and `spinner` (only Android) |
7676
| format | 'YYYY-MM-DD' | `string` | Specify the display format of the date, which using [moment.js](http://momentjs.com/). The default value change according to the mode. |

0 commit comments

Comments
 (0)