https://github.com/osedea/react-native-osd-datetimepicker
A Datepicker for Android and iOs for react-native
https://github.com/osedea/react-native-osd-datetimepicker
Last synced: 10 months ago
JSON representation
A Datepicker for Android and iOs for react-native
- Host: GitHub
- URL: https://github.com/osedea/react-native-osd-datetimepicker
- Owner: Osedea
- License: mit
- Created: 2016-05-31T18:08:22.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2018-01-22T15:29:47.000Z (over 8 years ago)
- Last Synced: 2025-06-09T09:44:24.359Z (12 months ago)
- Language: JavaScript
- Size: 202 KB
- Stars: 23
- Watchers: 25
- Forks: 6
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# react-native-osd-datetimepicker
A DateTime Picker for Android and iOs for react-native
For react-native v0.26+
# How it looks
### Closed

### Open
Android

iOs

# Output
For `time` : `HH:MM:00`
For `date` : Local date string (parsable in `new Date()`)
For `datetime` : Local datetime string (parsable in `new Date()`)
# Usage example
```jsx
```
# Properties
Property Name | Type | Remark
--- | --- | ---
date | React.PropTypes.string
minDate | React.PropTypes.string
maxDate | React.PropTypes.string
mode | React.PropTypes.oneOf([ 'datetime', 'date', 'time' ]) |
onChange | React.PropTypes.func.isRequired
iosDoneButtonText | React.PropTypes.string
iosDoneButtonStyle | Button.propTypes.containerStyle | see [react-native-osd-simple-button](http://github.com/osedea/react-native-osd-simple-button)
iosClosePickerButtonTextContainerStyle | Button.propTypes.textContainerStyle | see [react-native-osd-simple-button](http://github.com/osedea/react-native-osd-simple-button)
iosClosePickerButtonTextStyle | Button.propTypes.textStyle | see [react-native-osd-simple-button](http://github.com/osedea/react-native-osd-simple-button)
renderAndroidButton | React.PropTypes.func