I have implemented a react-native-datepicker, and it is displaying correctly and the default date is correct as the initial state is:
date: new Date()
However, when I press the icon to choose a date, all the dates are greyed out, and you can scroll but when you let go it just goes back and won't let you choose a date.
Any idea why I am having this problem?
<DatePicker
style={{width: 200}}
mode="date"
date={this.state.date}
format="DD-MM-YYYY"
minDate={this.state.date}
maxDate="01-01-2030"
confirmBtnText="Confirm"
cancelBtnText="Cancel"
onDateChange={(d) => {this.setState({date: d})}}
/>