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 064ccdf commit 6a4fe2dCopy full SHA for 6a4fe2d
src/DateTimePickerModal.ios.js
@@ -70,7 +70,7 @@ export class DateTimePickerModal extends React.PureComponent {
70
71
static getDerivedStateFromProps(props, state) {
72
if (props.isVisible && !state.isPickerVisible) {
73
- return { currentDate: props.date, isPickerVisible: true };
+ return { currentDate: new Date(), isPickerVisible: true };
74
}
75
return null;
76
0 commit comments