react-native-calendars icon indicating copy to clipboard operation
react-native-calendars copied to clipboard

Calendar days in Agenda component works fine in debug mode but seems disabled/grayed out in normal mode

Open yangy46 opened this issue 8 years ago • 5 comments

Observing 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:

debug mode

Normal mode has dates disabled:

normal mode

yangy46 avatar Mar 27 '18 05:03 yangy46

Very weird. Anyone else experiencing this? Can you try out example module and see if it works ok there?

tautvilas avatar Mar 29 '18 12:03 tautvilas

closing due to inactivity

tautvilas avatar Apr 12 '18 12:04 tautvilas

Still facing the issue on calendarList select date. Even i am getting the selected dates as invalid date.You can see it at top of header in that dialog

screenshot_1523615269 screenshot_1523615235

sumanth234 avatar Apr 13 '18 10:04 sumanth234

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?

tonyneel923 avatar Apr 23 '18 18:04 tonyneel923

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.

yangy46 avatar Jul 07 '18 16:07 yangy46