react-native-calendars icon indicating copy to clipboard operation
react-native-calendars copied to clipboard

Disable touch event for dates lower than minDate or higher than maxDate

Open Bosseskompis opened this issue 7 years ago • 2 comments

Can the touch events be disabled for dates that are lower than the minDate prop or higher than the maxDate similarly to how the disableTouchEvent is set for markedDates?

Bosseskompis avatar Apr 10 '18 16:04 Bosseskompis

Still in v1.21.0

qiaolin-pan avatar Oct 25 '18 01:10 qiaolin-pan

I also encountered this issue and discovered a solution. By setting the disableAllTouchEventsForDisabledDays property to true on the Calendar component, it effectively prevents the selection of dates that fall before the minDate (i.e., dates that are disabled). This configuration ensures that users cannot interact with or select these past, disabled dates.

bvedad avatar Feb 02 '24 21:02 bvedad