Calendar days in Agenda component works fine in debug mode but seems disabled/grayed out in normal mode
See original GitHub issueObserving on Android simulator that the dates in the calendar of the agenda component seems disabled and non-interactive in normal mode but seems to be working fine in debug mode. In normal mode, pressing on any of the calendar dates does not change the agenda list nor re-render the list. Dates are grayed out and does not respond to the bound onDayPress either.
<Agenda items={this.state.items} loadItemsForMonth={this.loadItems.bind(this)} selected={this._timeToString(new Date())} renderItem={this.renderItem.bind(this)} renderEmptyDate={this.renderEmptyDate.bind(this)} rowHasChanged={this.rowHasChanged.bind(this)} minDate={'2018-1-1'} />
Debug mode has dates enabled:
Normal mode has dates disabled:
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (2 by maintainers)
I can not even use the agenda when not in debug mode. If in normal mode I get undefined is not an object days[0].clone.
Anyone see this?
Not bringing this back from dead but figured I’d comment back to help others experiencing same issue. The root cause for the initial posted issue is because the agenda component didn’t like the minDate ‘2018-1-1’. Component seems to be expecting two digit month and dates… ie: YYYY-MM-DD. After setting min date to ‘2018-01-01’ the calendar days were active again. What is still strange is that this is only an issue in normal mode, in debug mode things work fine.
@tonyneel923 - I also observed that error and was able to resolve it by ensuring that all dates I had in the items were fully formatted as YYYY-MM-DD.