You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4-3Lines changed: 4 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -61,10 +61,11 @@ You can check [index.js](https://github.com/xgfe/react-native-datepicker/blob/ma
61
61
| customStyles | - |`number`| The hook of customize datepicker style, same as the native style. `dateTouchBody`, `dateInput`...|
62
62
| showIcon | true |`boolean`| Controller whether or not show the icon |
63
63
| placeholder | '' |`string`| The placeholder show when this.props.date is falsy |
64
+
| 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 | dateStr:string, date:date| 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. |
70
+
| onPressDate | - | Manually open the date picker panel |
71
+
| onPressCancel | - | Manually close the date picker panel like, similarly pressing cancel btn |
0 commit comments