CalendarPicker
CalendarPicker copied to clipboard
How to change todayTextStyle if selectedDayColor is same?
Here's my example
todayTextStyle is red, and when I select a day, the background color also red. so, if I select today, both are red, so I can't see today's date. so, I'm trying to change it to text white and red background.
here's my question. How can I change selected today date color?
I check if the date is today and then adjust color appropriately.
import { isToday } from 'date-fns';
const isTodaySelected = isToday(date);
todayTextStyle={{ color: isTodaySelected ? 'black' : 'red' }}