Skip to content

Commit

Permalink
fix: only allow gregorian calendar (#364)
Browse files Browse the repository at this point in the history
  • Loading branch information
henninghall authored Aug 20, 2021
1 parent 78626cd commit 36aecc3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ios/RNDatePicker/DatePicker.m
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ - (instancetype)initWithFrame:(CGRect)frame
self.preferredDatePickerStyle = UIDatePickerStyleWheels;
}
_reactMinuteInterval = 1;

// only allow gregorian calendar
self.calendar = [NSCalendar calendarWithIdentifier:NSCalendarIdentifierGregorian];
}
return self;
}
Expand Down

0 comments on commit 36aecc3

Please sign in to comment.