For some reason I have this weird bug where today’s date (ie the 14th) is highlighted in every future and past month. I never pass anything into my markedDates parameter that would tell the calendar to mark the xth of every month, so I was wondering if anyone has any idea why this could be happening or if this has happened to anyone else. Any tips would be appreciated.
TYIA
Question posted in React native
The official React Native documentation can be found here.
The official React Native documentation can be found here.
2
Answers
Hlo,
I Don’t know what is happening having same issue ,
But solved by change a line in node module
node_modules/react-native-calendars/src/calendar/day/basic/index.js
Image_link
simple replace line 31 with 32 as shown in above image
please try
As of now (07-feb-2023) this is an Open issue in the react-native-calendars.
The easiest option is to downgrade with a few versions until collaborators fix it.
The problem was introduced after
1.1289.0
and the latest version is1.1293.0
. so I didn’t find any major difference between the two.For me; changing today’s background color also didn’t work along with the above issue. downgrade fixed everything.
{todayBackgroundColor: '#777', todayTextColor: '#000',}
Steps to downgrade
"react-native-calendars": "^1.xxxx.x",
with""react-native-calendars": "1.1289.0",
in your package.jsonnpm install
oryarn install