Skip to content

Commit

Permalink
Added new property preferredDatepickerStyle (> iOS 13.4) and set valu…
Browse files Browse the repository at this point in the history
…e on wheels to retain origin functionality.
  • Loading branch information
Frank Flick committed Sep 24, 2020
1 parent c7880a8 commit 56a658c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/ios/DatePicker.m
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,10 @@ - (void)updateDatePicker:(NSMutableDictionary *)options {
if (locale) {
[self.datePicker setLocale:locale];
}

if (@available(iOS 13.4, *)) {
self.datePicker.preferredDatePickerStyle = UIDatePickerStyleWheels;
}
}

- (NSDateFormatter *)createISODateFormatter:(NSString *)format timezone:(NSTimeZone *)timezone {
Expand Down

0 comments on commit 56a658c

Please sign in to comment.