datetime mode is not working on Android
Sim923 opened this issue · comments
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?
It was css issue, so I have to set the picker's width as 100%