web-ridge / react-native-paper-dates

Smooth and fast cross platform Material Design date and time picker for React Native Paper
https://www.reactnativepaperdates.com
MIT License
640 stars 164 forks source link

Maximum Date Range that can be selected #287

Closed sachinjnd closed 1 year ago

sachinjnd commented 1 year ago

Is your feature request related to a problem? Please describe. I want the user to be able to select only upto maximum range of 3 months

Describe the solution you'd like Whenever user selects a start date, the dates after maximum possible range are grayed out

Describe alternatives you've considered When user selects outside range, I will show them a dialog to select within the range

Additional context

github-actions[bot] commented 1 year ago

Hey! Thanks for opening the issue. Can you provide a minimal repro which demonstrates the issue? Posting a snippet of your code in the issue is useful, but it's not usually straightforward to run. A repro will help us debug the issue faster. Please try to keep the repro as small as possible. The easiest way to provide a repro is on snack.expo.dev. If it's not possible to repro it on snack.expo.dev, then you can also provide the repro in a GitHub repository.

RichardLindhout commented 1 year ago

This should already work with onChange & validRange