The example code
<Calendar onChange={(date) => this.setState({date})} selected={this.state.date} // We use Moment.js to give the minimum and maximum dates. minDate={Moment().startOf('day')} maxDate={Moment().add(10, 'years').startOf('day')} />
Says "Invalid date" when I try to run it. My application doesn't break, the calendar just doesn't load.
I'm using Expo
The example code
<Calendar onChange={(date) => this.setState({date})} selected={this.state.date} // We use Moment.js to give the minimum and maximum dates. minDate={Moment().startOf('day')} maxDate={Moment().add(10, 'years').startOf('day')} />
Says "Invalid date" when I try to run it. My application doesn't break, the calendar just doesn't load.