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
feat(ios): support new date picker styles #11977
Conversation
Tests:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
code changes LGTM, we should add some unit tests that verify the new constants exist in JS, maybe a UI test that validates once set we get the sort of UI we expect?
The datePickerStyle of DATE_PICKER_STYLE_COMPACT is mentioned as min iOS 13.4. Should it not be min iOS 14.0? |
No, it's iOS 13.4 already: https://developer.apple.com/documentation/uikit/uidatepickerstyle/uidatepickerstylecompact?language=objc |
@hansemannn thanks for the reference. However with the current PR the DATE_PICKER_STYLE_COMPACT does not show up as compact style on iOS 13.4+ device/simulator. It works fine on iOS 14. On iOS 13.4+ it still shows as wheel style. |
It is primarily used for iOS 13.4 apps that use Catalyst (macOS support), thats why I added it here already. In iOS 14, it becomes available on the "normal" / non-Catalyst iOS apps as well. Should I change it? |
I don't think we should change it. As it is marked as iOS 13.4+ in apple doc, we should also have the same. Not working properly on iOS 13.4, might be apple bug. @ssekhri May be you can try on iOS 13.5, 13.6 and 13.7. |
I mean, it will work on iOS 13.4 combined with Catalyst. So I think it should be fine, especially because #11955 is rolling in soon. |
I agree that we should be in sync with Apple docs on the version support. However it would be good to have it mentioned in the docs that DATE_PICKER_STYLE_COMPACT style would not show as expected on iOS <14 until used with Mac Catalyst. |
@ssekhri I agree - and added the notes. |
FR Passed. Verified on: |
Note: Without these, default pickers will look off on iOS 14+, so developers should very carefully check their apps for pickers. Fixes TIMOB-28104
5c7a11e
to
9049580
Compare
JIRA: https://jira.appcelerator.org/browse/TIMOB-28104
Note: Without these, default pickers will look off on iOS 14+, so developers should very carefully check their apps for pickers.