wix / react-native-calendars

React Native Calendar Components 🗓️ 📆
MIT License
9.57k stars 2.96k forks source link

Missing textDayHeaderColor / renderDayHeader #2277

Open bravecode opened 1 year ago

bravecode commented 1 year ago

Description

I need to customize day's header. You allow to configure properties like font size, weight through Theme object but there is one important property missing: color.

Expected Behavior

We could extend Theme object with textDayHeaderColor or implement renderDayHeader function to allow even more customization.

Observed Behavior

Not implemented yet.

stevengoldberg commented 1 year ago

This seems like a logical addition, but you can also fully customize styles by overriding the stylesheets as described here: https://wix.github.io/react-native-calendars/docs/Components/Calendar#advanced-styling

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

MussadiqAli commented 10 months ago

facing the same issue

stale[bot] commented 6 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Flora-Ht commented 2 weeks ago

Hello, Any news on this possible update - being able to implement a custom day header? Or at least add an advanced styling option on individual day header container? At the moment, you can customize

'stylesheet.calendar.header': { 
  week: { ... }
  dayTextAtIndex[1/2/3/...]: { ... }
}

which is the View around the whole week days header and the Text of the day name. I would like to customize each day header container individually.

The main problem being: In https://github.com/wix/react-native-calendars/blob/master/src/calendar/header/index.tsx , method renderWeekDays, there's no View around the Text.

Would it be possible to add that?