Browse Source

fix: only allow gregorian calendar (#364)

master
Henning Hall 4 years ago
committed by GitHub
parent
commit
36aecc32e6
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      ios/RNDatePicker/DatePicker.m

+ 3
- 0
ios/RNDatePicker/DatePicker.m View File

@ -58,6 +58,9 @@
self.preferredDatePickerStyle = UIDatePickerStyleWheels;
}
_reactMinuteInterval = 1;
// only allow gregorian calendar
self.calendar = [NSCalendar calendarWithIdentifier:NSCalendarIdentifierGregorian];
}
return self;
}

Loading…
Cancel
Save