React Native DatePicker for iOS and Android
npm i --save --save-exact tsjing-date-picker
Note: all timestamps are ms-based
Property | Type | Description |
---|---|---|
value | Number (timestamp) | Current date value of the date picker |
minDate | Number (timestamp) | Minimum date that can be selected |
maxDate | Number (timestamp) | Maximum date that can be selected |
mode | String | iOS only: 'date', 'time' or 'datetime' |
onDateChange | Function | Fires when the selected date changed, param: datetime as timestamp |
textFieldStyle | Object | Additional styling for the input box |
initialDate | Number (timestamp) | Initial date |
spinnerMode | Boolean | Android only: shows the calendar as a spinner |
- More testing
- Placeholders
- Examples