@momo-kits/date-picker 0.0.5 → 0.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -202,11 +202,11 @@ class DatePicker extends Component {
202
202
 
203
203
  this.hourIndex = this.selectedDate
204
204
  ? this.hours.indexOf(valueHours)
205
- : this.hours.indexOf(current.getHours().toString());
205
+ : this.hours.indexOf(current.getHours().toString().length === 1 ? `0${current.getHours().toString()}` : current.getHours().toString());
206
206
 
207
207
  this.minuteIndex = this.selectedDate
208
208
  ? this.minutes.indexOf(valueMinute)
209
- : this.minutes.indexOf(current.getMinutes().toString());
209
+ : this.minutes.indexOf(current.getMinutes().toString().length === 1 ? `0${current.getMinutes().toString()}` : current.getMinutes().toString());
210
210
  }
211
211
  }
212
212
 
@@ -146,7 +146,7 @@ const styles = StyleSheet.create({
146
146
  justifyContent: 'center'
147
147
  },
148
148
  contentStyle: {
149
- height: 200,
149
+ height: 230,
150
150
  },
151
151
  column: {
152
152
  borderWidth: 2,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@momo-kits/date-picker",
3
- "version": "0.0.5",
3
+ "version": "0.0.8",
4
4
  "private": false,
5
5
  "main": "index.js",
6
6
  "dependencies": {},