stephy / CalendarPicker

CalendarPicker Component for React Native
787 stars 369 forks source link

Multiple selection of event dates #121

Open SaurabhBrst opened 6 years ago

SaurabhBrst commented 6 years ago

How can i add multiple selected dates in calendar. I have to add multiple events in single month right now i am able to add only single start and end date.

peacechen commented 6 years ago

There would probably need to be a new prop such as multiDateSelection to enable this new mode. New logic would toggle selected dates in an array and fire a callback prop such as onMultiDateSelected. The day highlighting would also need to be wired up to the multi-dates array.

PRs are welcome :)

PvanHengel commented 6 years ago

This would be a nice feature, also to limit the number of date would be good, very often you might want to select only 2 dates, without it being a range, or maybe 3 or 4.. the prop should maybe be a number to define the maximum number of dates. Also you will need to be able to toggle selected dates off when you hit the max, or perhaps automatically de-select the first selected date or something of that sort.

mparkhomenko commented 4 years ago

@peacechen Hi! How can I select multiple dates that are out of range? Is there such an opportunity? For example I want to select only 1st October and 1st November dates

peacechen commented 4 years ago

@mparkhomenko Please open a new issue for a different topic. See the disabledDates prop: https://github.com/stephy/CalendarPicker#calendarpicker-props

dariocostanzo commented 3 years ago

There would probably need to be a new prop such as multiDateSelection to enable this new mode. New logic would toggle selected dates in an array and fire a callback prop such as onMultiDateSelected. The day highlighting would also need to be wired up to the multi-dates array.

PRs are welcome :)

This would be great.

niloufarMakhzani commented 2 years ago

any update?