From 29186cf6a4339d4e3500dfd45800bde3605c2b2b Mon Sep 17 00:00:00 2001 From: James Bechet Date: Sun, 25 Aug 2019 08:10:59 -0400 Subject: [PATCH] chore: add onDateChange second param in readme --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 71eea61caa..b188a3e024 100644 --- a/README.md +++ b/README.md @@ -88,7 +88,7 @@ You can check [index.js](https://github.com/xgfe/react-native-datepicker/blob/ma | is24Hour | - | `boolean` | Set the TimePicker is24Hour flag. The default value depend on `format`. Only work in Android | | allowFontScaling | true | `boolean` | Set to false to disable font scaling for every text component | | placeholder | '' | `string` | The placeholder show when this.props.date is falsy | -| onDateChange | - | `function` | This is called when the user confirm the picked date or time in the UI. The first and only argument is a date or time string representing the new date and time formatted by [moment.js](http://momentjs.com/) with the given format property. | +| onDateChange | - | `function` | This is called when the user confirm the picked date or time in the UI. The first argument `dateStr` is a date or time string representing the new date and time formatted by [moment.js](http://momentjs.com/) with the given format property. The second argument is a `date` that is not formatted. | | onOpenModal | - | `function` | This is called when the DatePicker Modal open. | | onCloseModal | - | `function` | This is called when the DatePicker Modal close | | onPressMask | - | `function` | This is called when clicking the ios modal mask |