Skip to content

Commit

Permalink
fix(datepicker): fix androidMode enum not support 'clock' bug
Browse files Browse the repository at this point in the history
  • Loading branch information
feyy committed Apr 22, 2018
1 parent 05c2f30 commit dc29a09
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion datepicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,7 @@ DatePicker.defaultProps = {

DatePicker.propTypes = {
mode: PropTypes.oneOf(['date', 'datetime', 'time']),
androidMode: PropTypes.oneOf(['calendar', 'spinner', 'default']),
androidMode: PropTypes.oneOf(['clock', 'calendar', 'spinner', 'default']),
date: PropTypes.oneOfType([PropTypes.string, PropTypes.instanceOf(Date), PropTypes.object]),
format: PropTypes.string,
minDate: PropTypes.oneOfType([PropTypes.string, PropTypes.instanceOf(Date)]),
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-native-datepicker",
"version": "1.7.0",
"version": "1.7.1",
"description": "React Native DatePicker component for both Android and iOS, useing DatePickerAndroid, TimePickerAndroid and DatePickerIOS",
"main": "datepicker.js",
"scripts": {
Expand Down

0 comments on commit dc29a09

Please sign in to comment.