Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

minDate/maxDate #448

Closed
Lucignation opened this issue Jan 22, 2025 · 4 comments
Closed

minDate/maxDate #448

Lucignation opened this issue Jan 22, 2025 · 4 comments
Labels
needs more info Needs more information

Comments

@Lucignation
Copy link

Is your feature request related to a problem? Please describe.
When a user is NOT allowed to pick a future date, then the future dates should grey out. The component of the package is not accepting minimum and maximum dates as props

Describe the solution you'd like
When a user is NOT allowed to pick a future date, then the future dates should grey out. The component of the package is not accepting minimum and maximum dates as props

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

@iM-GeeKy iM-GeeKy added the needs more info Needs more information label Jan 26, 2025
Copy link
Contributor

Hey! Thanks for opening the issue. Can you provide more information about the issue? Please fill the issue template when opening the issue without deleting any section. We need all the information we can, to be able to help. Make sure to at least provide - Current behaviour, Expected behaviour, A way to reproduce the issue with minimal code (link to snack.expo.dev) or a repo on GitHub, and the information about your environment (such as the platform of the device, versions of all the packages etc.).

@ericpoulinnz
Copy link
Contributor

@Lucignation I had the same confusion as it's poorly labeled in this package (IMO).

Using the validRange prop will give you what you're after.

@Lucignation
Copy link
Author

@ericpoulinnz Isn't the validRange used for date range? Something like picking the start date and end date?

What I am talking about is about if I set today as the maxDate props, any date after today will be disabled for users to click. Does this exist on the package? it's hard to get the name of the props, like you said, it might be a poor label in the package.

@RichardLindhout
Copy link
Member

I think https://web-ridge.github.io/react-native-paper-dates/docs/date-picker/range-date-picker
validRange is what you want probably :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs more info Needs more information
Projects
None yet
Development

No branches or pull requests

4 participants