HosseinShabani / react-native-modern-datepicker

A customizable calendar, time & month picker for React Native (including Persian Jalaali calendar & locale)
MIT License
573 stars 159 forks source link

Option to provide disabled dates #111

Open Pika-Pool opened 1 year ago

Pika-Pool commented 1 year ago

Is your feature request related to a problem? Please describe. A very useful feature is to disable certain dates, eg: weekends and holidays. This is useful when calendar is used to select appointments etc.

Describe the solution you'd like Add a prop to Calendar disabledDates, which takes an array of Date objects which need to be disabled

Additional context react-native-paper-dates does this too: https://www.npmjs.com/package/react-native-paper-dates#usage

nodahikaru commented 1 year ago

I think this is a basic feature calendar component should have.