We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 56cc719 commit ecc2fd4Copy full SHA for ecc2fd4
src/DateTimePickerModal.ios.js
@@ -72,7 +72,7 @@ export class DateTimePickerModal extends React.PureComponent {
72
73
static getDerivedStateFromProps(props, state) {
74
if (props.isVisible && !state.isPickerVisible) {
75
- return { currentDate: props.date, isPickerVisible: true };
+ return { currentDate: props.minimumDate ?? new Date(), isPickerVisible: true };
76
}
77
return null;
78
0 commit comments