react-native-date-ranges icon indicating copy to clipboard operation
react-native-date-ranges copied to clipboard

add maxDate and minDate options to block dates

Open alzalabany opened this issue 2 years ago • 1 comments

currently, we can set blockBefore or blockAfter to block future or past. but i cannot find a way to customize blocked dates

example: block dates before next week. or block dates after yesterday.

if its possible we can add blockedDates={[ [Date(2022,11,11), Date(2022,11,15) ], ...]} to allow app to block certain dates. or even simple blockBefore={Date(2022,11,11)} to block all slots before dec. 11th for example.

Thanks a lot. if you need a hand i can surely help.

alzalabany avatar Dec 02 '22 16:12 alzalabany

Hi, I strongly recommend you fork the repo and modify yourself as this pkg is no longer maintained

pohsiu avatar Dec 06 '22 14:12 pohsiu