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 |