react-native-calendars icon indicating copy to clipboard operation
react-native-calendars copied to clipboard

Change date color in Agenda items

Open codefromrvk opened this issue 2 years ago • 2 comments

Description

I am not able to change the default date color in the agenda items. I want to change the marked date in the image.

I could not find the CSS property to change the date color.

Environment

React native 0.69

image

codefromrvk avatar Sep 22 '22 13:09 codefromrvk

Tried using agendaDayTextColor: 'gray', agendaDayNumColor: 'gray', agendaTodayColor: 'gray',. Neither of them worked

codefromrvk avatar Sep 22 '22 16:09 codefromrvk

Any update on this?

haider260 avatar Sep 22 '22 17:09 haider260

Any update on this?

Ended up using renderDay={(day, item) => ( )} . Changed only day using this and kept the item as it is.

codefromrvk avatar Sep 23 '22 13:09 codefromrvk

I'm facing the same issue in the new library "node_modules/react-native-calendars": { "version": "1.1289.0",

The only place I've found this color is in:

node_modules/react-native-calendars/src/style.js

export const textLinkColor = '#00BBF2';

image

Then it been used in the below places in same file:

export const todayTextColor = textLinkColor; export const agendaTodayColor = textLinkColor; export const todayButtonTextColor = textLinkColor;

But even trying to change in the Agenda of my class, it keeps loading the blue color.

rabiaah avatar Oct 01 '22 16:10 rabiaah

Temporary fix is as below:

image

Add "theme" in line 110 and line 131 as showed in the above screenshot.

rabiaah avatar Oct 01 '22 16:10 rabiaah