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
Asked
Active
Viewed 1,364 times
2 Answers
0
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
simple replace line 31 with 32 as shown in above image please try

Mohit Sheoran
- 9
- 2
-
Unfortunately that did not work for me. What ended up working was following @TomCorvus's response on [this github issue](https://github.com/wix/react-native-calendars/issues/2073) – midnighttfoxx Nov 15 '22 at 18:04
0
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 is 1.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
- replace your
"react-native-calendars": "^1.xxxx.x",
with""react-native-calendars": "1.1289.0",
in your package.json - do a
npm install
oryarn install

Omal Perera
- 2,971
- 3
- 21
- 26