stephy / CalendarPicker

CalendarPicker Component for React Native
792 stars 369 forks source link

Disable specific or multiple dates #67

Closed ittikorns closed 6 years ago

ittikorns commented 7 years ago

The idea is to add disabledDates prop with list of date in array format which will become unable to choose from the picker.

I've created a PR #66 for this.

Example code

const disabledDates = [new Date('10 May, 2017'), new Date('12 May, 2017'), new Date('15 May, 2017')];

<CalendarPicker
...
disabledDates={disabledDates}
...
/>

Screenshots

screen shot 2560-05-04 at 11 28 58 pm
ghitatomy commented 6 years ago

Can you please fix this? A disableWeekends property would be nicer.

peacechen commented 6 years ago

This has been implemented in #104 and merged into master.