CalendarPicker icon indicating copy to clipboard operation
CalendarPicker copied to clipboard

How to change todayTextStyle if selectedDayColor is same?

Open ireneeming opened this issue 2 years ago • 1 comments

Here's my example 스크린샷 2023-01-10 오후 5 46 04

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?

ireneeming avatar Jan 10 '23 08:01 ireneeming

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' }}

alarm109 avatar May 30 '24 13:05 alarm109