gusparis / react-native-month-year-picker

React Native Month Picker component for iOS & Android
MIT License
107 stars 75 forks source link

It's still possible to select a date beyond min/max #66

Closed apgsn closed 3 years ago

apgsn commented 3 years ago

The way you do it is by clicking the ok button before the scrolling animation outside min/max boundaries has ended.
Android only, v. 1.6.3.

gusparis commented 3 years ago

Hey @apgsn! yeah...scrolling animation is causing a lot of issues on Android. I will have to remove it or disable the whole component while animating 🤷🏻‍♂️. I'll review it today afternoon.

apgsn commented 3 years ago

Eventually I found a quick fix by testing the returned date against min/max values before invoking the callback associated to ACTION_DATE_SET, maybe you can do something like that but within the component.

gusparis commented 3 years ago

hacky 😎

gusparis commented 3 years ago

:tada: This issue has been resolved in version 1.6.4 :tada:

The release is available on:

Your semantic-release bot :package::rocket: