react-native-wheel-picker-android
Advanced tools
Comparing version 0.1.3 to 0.1.4
{ | ||
"name": "react-native-wheel-picker-android", | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"description": "Simple Wheel Picker for Android to use with react-native", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -17,7 +17,7 @@ # ReactNativeWheelPicker | ||
import WheelPicker from 'react-native-wheel-picker-android'; | ||
import { WheelPicker, DatePicker, TimePicker } from 'react-native-wheel-picker-android' | ||
... | ||
render() { | ||
let arr = [1,2,3]; | ||
let arr = [1,2,3]; | ||
return ( | ||
@@ -40,14 +40,12 @@ <WheelPicker | ||
import TimePicker from './TimePicker'; | ||
... | ||
render() { | ||
let minutesArray = ['00', '15', '30', '45']; | ||
let now = new Date(); | ||
let minutesArray = ['00', '15', '30', '45']; | ||
let now = new Date(); | ||
return ( | ||
<TimePicker | ||
minutes={minutesArray} | ||
onDateSelected={(date)=>this.onDateSelected(date))} | ||
initDate={now.toISOString()} | ||
/> | ||
minutes={minutesArray} | ||
onDateSelected={(date)=>this.onDateSelected(date))} | ||
initDate={now.toISOString()}/> | ||
); | ||
@@ -68,3 +66,2 @@ } | ||
import DatePicker from './DatePicker'; | ||
... | ||
@@ -76,4 +73,4 @@ | ||
<DatePicker | ||
initDate={now.toISOString()} | ||
onDateSelected={(date)=> this.onDateSelected(date)}/> | ||
initDate={now.toISOString()} | ||
onDateSelected={(date)=> this.onDateSelected(date)}/> | ||
); | ||
@@ -80,0 +77,0 @@ } |
307176
137