maggialejandro / react-native-calendario

📆 React Native Calendar
https://react-native-components.gitbook.io/calendar/
MIT License
505 stars 47 forks source link

Need Year Selection #374

Open arunkumar-pyt opened 10 months ago

arunkumar-pyt commented 10 months ago

Need year selection if I press month header

maggialejandro commented 10 months ago

That can be implemented by adding a custom render prop here https://github.com/maggialejandro/react-native-calendario/blob/3bcf0e5f50876959d2973063a0f8b9cb0ee8d1ef/src/components/Month/index.tsx#L134

PR's are welcome!

arunkumar-pyt commented 10 months ago

Please kindly give me sample code for month header custom rendering with clickable

maggialejandro commented 10 months ago

It's not implemented, you can modify that line adding a custom prop to Calendar, something like

renderMonthTitle?: (monthName: string, theme?: ThemeType) => ReactElement;
stale[bot] commented 7 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. You may also mark this issue as a "discussion" and I will leave this open.