pinguinjkeke / react-native-wheel-datepicker

Android & iOS iOS-style Picker & DatePicker Components for ReactNative

Home Page:https://www.npmjs.com/package/react-native-wheel-datepicker

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

datetime mode is not working on Android

Sim923 opened this issue · comments

commented

screen shot 2018-07-17 at 5 57 28 pm

Here's my code
<DatePicker
date={datetime}
style={[styles.datepicker, { marginTop: 16 }]}
onDateChange={(val) => this.onDateChange(val)}
mode="date"
minuteInterval={15}
/>

      <Picker
        selectedValue={duration}
        pickerData={this.durationData}
        style={styles.datepicker}
        onValueChange={val => this.onDurationChange(val)}
      />

My trouble is Picker is showing correctly on Android but not DatePicker
Can anyone please help me?

commented

It was css issue, so I have to set the picker's width as 100%