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
637 stars 161 forks source link

Allow setting a specific minute intervals on time picker #376

Closed minuz closed 1 month ago

minuz commented 3 months ago

Is your feature request related to a problem? Please describe. My team is building a timesheet application and we have some use cases where we don't want to allow our users to pick precise minutes. In certain cases, we need to use 30 minutes increments and others 5 minutes and others will full precision. At the moment, it does seems like we have a way to control this.

Describe the solution you'd like An optional prop such as minuteInterval?: number where the number would be used to display the time increments on the clock and only allow the user to select within that range. Should default to 1 as it currently is.

Describe alternatives you've considered I haven't found any prop that could control this. It doesn't seems like we can override or extend the component to achieve this. If there is, please point me to the right direction!

iM-GeeKy commented 2 months ago

PRs are welcome!

github-actions[bot] commented 1 month ago

Hello 👋, this issue has been open for more than a month without a repro or any activity. If the issue is still present in the latest version, please provide a repro or leave a comment within 7 days to keep it open, otherwise it will be closed automatically. If you found a solution or workaround for the issue, please comment here for others to find. If this issue is critical for you, please consider sending a pull request to fix it.