diff --git a/src/DateTimePickerModal.android.js b/src/DateTimePickerModal.android.js index b19a94e..3495d1b 100644 --- a/src/DateTimePickerModal.android.js +++ b/src/DateTimePickerModal.android.js @@ -6,7 +6,7 @@ import DateTimePicker from "@react-native-community/datetimepicker"; const areEqual = (prevProps, nextProps) => { return ( prevProps.isVisible === nextProps.isVisible && - prevProps.date === nextProps.date + prevProps.date.getTime() === nextProps.date.getTime() ); };