Skip to content

Commit

Permalink
fix androidMode
Browse files Browse the repository at this point in the history
added missing key requried by DatePickerAndroid
  • Loading branch information
ccarisleEnsembleGroup committed Apr 6, 2017
1 parent 719c81f commit 095f756
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions index.js
Expand Up @@ -193,7 +193,7 @@ class DatePicker extends Component {
hour: timeMoment.hour(),
minute: timeMoment.minutes(),
is24Hour: is24Hour,
androidMode
mode: androidMode
}).then(this.onDatetimeTimePicked.bind(this, year, month, day));
}
}
Expand Down Expand Up @@ -229,7 +229,7 @@ class DatePicker extends Component {
date: this.state.date,
minDate: minDate && this.getDate(minDate),
maxDate: maxDate && this.getDate(maxDate),
androidMode
mode: androidMode
}).then(this.onDatePicked);
} else if (mode === 'time') {
// 选时间
Expand All @@ -248,7 +248,7 @@ class DatePicker extends Component {
date: this.state.date,
minDate: minDate && this.getDate(minDate),
maxDate: maxDate && this.getDate(maxDate),
androidMode
mode: androidMode
}).then(this.onDatetimePicked);
}
}
Expand Down

0 comments on commit 095f756

Please sign in to comment.