iberHK / react-native-picker

纯JS实现的一个高效流畅的日期选择器和区域选择器,支持android、ios

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

更改日期后取值错误

rappercn opened this issue · comments

先选择1月31日,然后月份改为2月,选择器上的日期变为28号,但是如果按下确定,返回的日期却是2月31日

you can do a simple work around to check if the date in February is larger than 28(29 if year%4 == 0),
then set the date to 28/29 correspondingly

已修复该bug,感谢反馈。