acro5piano / react-native-big-calendar

gcal/outlook like calendar component for React Native
https://react-native-big-calendar.vercel.app
MIT License
422 stars 138 forks source link

feat: expose prop to be able to send the enriched dictionary #989

Closed Lespoir closed 7 months ago

Lespoir commented 7 months ago

Context

We've implemented a mechanism to leverage an internally optimized algorithm along with a dictionary for more efficient event rendering. Nevertheless, there are instances when the host app prefers to construct this dictionary independently, such as when handling it within a background job.

Solution

The library now exposes a prop to accept the enrichedEvents dictionary. When enableEnrichedEvents is activated, the library attempts to utilize this new property. If the dictionary is not provided, it gracefully falls back to constructing it internally.

vercel[bot] commented 7 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
react-native-big-calendar ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 1, 2023 3:39pm
Lespoir commented 7 months ago

@acro5piano could u give it a look please?

acro5piano commented 7 months ago

@Lespoir Thanks! It would be great if you write a document about enrichedEvents to README so that newcomers can understand what it refers to. Anyway, I'll accept this PR and create a new version soon.