We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dd7d7b3 commit bfe0b41Copy full SHA for bfe0b41
ios/RNDateTimePicker.m
@@ -72,4 +72,12 @@ - (void)setDate:(NSDate *)date {
72
}
73
74
75
+- (CGSize)intrinsicContentSize {
76
+ CGSize size = [super intrinsicContentSize];
77
+ // iOS DatePicker requires a minimum width of 280 points for proper display
78
+ // See: https://github.com/react-native-datetimepicker/datetimepicker/issues/1014
79
+ size.width = MAX(size.width, 280);
80
+ return size;
81
+}
82
+
83
@end
0 commit comments