Skip to content

Commit

Permalink
feat: Fix memoized equal check on Android (#532)
Browse files Browse the repository at this point in the history
  • Loading branch information
sandergo90 authored Feb 26, 2021
1 parent 0f6a665 commit 40f7e68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/DateTimePickerModal.android.js
Original file line number Diff line number Diff line change
Expand Up @@ -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()
);
};

Expand Down

0 comments on commit 40f7e68

Please sign in to comment.