Closed UnableHead closed 5 years ago
Thanks for reporting this! It would be awesome if you could provide a PR with this fix and I will test it out.
@UnableHead I have now verified that this issue exists. I will wait a day or so if you would like to make a PR, otherwise I will just fix it myself 🙂
Good.
I can do it this Monday. 😀
Great!
Released in v2.6.1
Hello,
I have a problem about the date order on Android. I try on iOS it works fine.
It set the locale props at
fr-FR
, the month name translation is correct, and the order date isMM-DD-YYYY
but the correct French order should beDD-MM-YYYY
.I search in code and I found this in the file
./node_modules/react-native-date-picker/android/src/main/java/com/henninghall/date_picker/WheelOrderUpdater.java
at the line 27 :I guess as the function name means
monthNameBeforeMonthDate
that we should swap the lines in the if like this :I hope this will help to fix the problem. If needed, I could do a pull request (never done this before).