Open anceque opened 7 years ago
You are not doing anything wrong, there was a small mistake in the latest build. I have created a pull request that fixes the problem. #111
I've got this same issue even with the PR applied (RN 0.39.1) @inferno1005 Were you able to get a spinner on Android for date? If so, which version of RN are you using? I'm thinking my issue is because of https://github.com/facebook/react-native/issues/11727
Yes I am able to get the spinner to work with the mode='date' androidMode='spinner'
We are using React Native 0.42.2
also android version is 6.0.1
if that matters.
@inferno1005 Can you, please, make it work also with mode='datetime'
?
On Android 7.0 I just set mode='date' androidMode='spinner'
.
The Calendar keeps showing up every time.
Someone knows why? This is the code:
<DatePicker
showIcon={false}
style={{width: 110}}
date={this.state.date}
mode='date'
placeholder="Clicca qui"
format="DD/MM/YYYY"
minDate="14/04/1900"
maxDate={today}
confirmBtnText="Confirm"
cancelBtnText="Cancel"
customStyles={{
dateIcon: {
position: 'absolute',
left: 0,
top: 4,
marginLeft: 0
}
}}
onDateChange={(date) => {this.setState({date: date})}}
androidMode='spinner'
/>
Thanks!
I have same issue on Android 7. Seeing calendar and no spinner. Only on Android 7's.
@quintonn same here!
same here
https://stackoverflow.com/questions/39873076/datepickerdialog-holo-styling-failed-on-android-7-nougat @EsdrasEtrenne @rwrz @quintonn @univers3
Hey, i wanted to test the new feature for
androidMode='spinner'
, added today, but it seems it's not working for me because the calendar view is shown..my code is rather simple and here's a snippet from it:
Am i doing something wrong?