MarceloPrado / flash-calendar

The fastest React Native calendar 📆⚡
https://marceloprado.github.io/flash-calendar/
MIT License
1.09k stars 33 forks source link

How to display events for each day with lazy loading? #48

Closed nphamvn closed 3 months ago

nphamvn commented 4 months ago

I need to display events for each day on the calendar, and I want to implement lazy loading for the events. Is there a built-in way to do this, or do I need to implement it manually? Any guidance or examples would be appreciated.

Thanks!

MarceloPrado commented 3 months ago

I would approach this by composing your own calendar. This way, you'd get full control of the experience.

Besides listening to the scroll position, you'll also want to decide how to render the events in the day component. While I don't believe you'd need your own calendar just to listen to the scroll pos, you would need something more powerful to customize the day component, and hence, the "composable calendar approach".