wix / react-native-calendars

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

Multiple day item in AgendaList #1870

Closed KrisLau closed 2 years ago

KrisLau commented 2 years ago

Description

So this is an example event I have and I would like for it to span multiple days in the AgendaList component but I have absolutely no idea what I should do to do so?

Expected Behavior

I passed my events to the AgendaList section like this:

[
    ..., 
    {
         isAllDay: false,
         start_time: new Date(),
         end_time: new Date(),
         title: 'Example',
         location: 'test location',
    }
]

but that results in the multiday event being displayed on only one date.

Observed Behavior

What actually happened when you performed the above actions?

If there's an error message, please paste the full terminal output and error message in this code block:

Error text goes here!

Environment

Also specify:

  1. Emulator & OS version:
    • Pixel 3a API 30 (Android 11.0)

Reproducible Demo

N/A

Screenshots

Included in post already

KrisLau commented 2 years ago

Figured it out I had to split multi day events manually using flatMap before grouping the dates