简体   繁体   中英

Calendar days in CalendarList component of react-native-calendars npm module seems disabled/grayed out in normal mode but works fine in debug mode

Calendar marked dates are working fine with debug mode but not in normal mode.(I am fetching marked dates from the backend)

But if i am running in normal or release mode, marking dates are disabling all the dates in calendar and gives the saved date as invalid date.

Reference for this issue on github : https://github.com/wix/react-native-calendars/issues/438

Let me know if anyone would have faced the same issue.

I have gone through the react-native-calendars github repo , but then also am not able to find the exact cause for the issue.

Even i am getting the selected dates as invalid date.You can see it at top of header in that dialog

在此处输入图片说明

在此处输入图片说明

The issue was regarding with the date format which i was passing.

Initially i was using normal Date() method and parsing the date to required format and sending it.But while receving it was converted to other format.

So, finally i found that date should be formatted to ISO standard.

Then i used moment() method to convert it to required format on which the issue got resolved.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM