stephy / CalendarPicker

CalendarPicker Component for React Native
787 stars 369 forks source link

is it possible to custom render date? #222

Open chj-damon opened 3 years ago

chj-damon commented 3 years ago

I can change the style of date, but I cannot change date the number. for example, I don't want just show 1, 2, 3 etc, but I want to show One, Two, Three etc...

Is it possible now?

peacechen commented 3 years ago

The the day of month number is not configurable using the stock renderer. https://github.com/stephy/CalendarPicker/blob/master/CalendarPicker/Day.js#L190

A prop similar to weekdays and months would need to be added to support this. The new prop would be an array named days that the Day component would use to override the default number. https://github.com/stephy/CalendarPicker#calendarpicker-props

Please submit a PR to add this feature.