Skip to content

Commit 40f7e68

Browse files
authored
feat: Fix memoized equal check on Android (#532)
1 parent 0f6a665 commit 40f7e68

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/DateTimePickerModal.android.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import DateTimePicker from "@react-native-community/datetimepicker";
66
const areEqual = (prevProps, nextProps) => {
77
return (
88
prevProps.isVisible === nextProps.isVisible &&
9-
prevProps.date === nextProps.date
9+
prevProps.date.getTime() === nextProps.date.getTime()
1010
);
1111
};
1212

0 commit comments

Comments
 (0)