Skip to content

Commit 8c46f3d

Browse files
committed
docs(datepicker): add docs for new two properties onOpenModal and onCloseModal
1 parent 3a9df99 commit 8c46f3d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,8 @@ You can check [index.js](https://github.com/xgfe/react-native-datepicker/blob/ma
7979
| is24Hour | - | `boolean` | Set the TimePicker is24Hour flag. The default value depend on `format`. Only work in Android |
8080
| placeholder | '' | `string` | The placeholder show when this.props.date is falsy |
8181
| 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. |
82+
| onOpenModal | - | `function` | This is called when the DatePicker Modal open. |
83+
| onCloseModal | - | `function` | This is called when the DatePicker Modal close |
8284
| modalOnResponderTerminationRequest | - | `function` | Set the callback for React Native's [Gesture Responder System](https://facebook.github.io/react-native/docs/gesture-responder-system.html#responder-lifecycle)'s call to `onResponderTerminationRequest`. By default this will reject a termination request, but can be overidden in case the View under the Modal is implementing custom gesture responders, and you wish for those to be overidden in certain cases. |
8385

8486
### Property `customStyles` available keys

0 commit comments

Comments
 (0)