hoangnm/react-native-week-view

Stack event when they can

rdewolff opened this issue · 7 comments

What do you think about a more clever way to stack event when they can?

We could overlap events based on the text in it's content.

Check for example how Apple Calendar is doing it:

Screenshot 2022-07-12 at 16 06 11

What do u think?

Sounds interesting!

Any API suggestions? I'd prefer something more flexible than detecting the same description, to support multiple use cases (e.g. a user may still want some events non-stacked, even if they have the same description)

I got this working, user can decide per event if wants to stack or not

image

I can send a PR after solving open PRs #227, #229

Woaw that's really nice!

When you stack them, what happens if you put event A at 17h00 and event B at 17h15 ?

image

do you mean one of those?

If you keep adding Event-A's to Tue19, they fall into the same stack, but other events will fall into their own lane:

image

That seems like a perfect solution. Looking forward testing this!