Skip to content
This repository has been archived by the owner on Feb 8, 2020. It is now read-only.

Commit

Permalink
fix: use memo for card container
Browse files Browse the repository at this point in the history
  • Loading branch information
satya164 committed Jan 5, 2020
1 parent 12d9083 commit 65ce20e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/stack/src/views/Stack/CardContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ type Props = TransitionPreset & {
}) => void;
};

export default function CardContainer({
function CardContainer({
active,
cardOverlayEnabled,
cardShadowEnabled,
Expand Down Expand Up @@ -184,6 +184,8 @@ export default function CardContainer({
);
}

export default React.memo(CardContainer);

const styles = StyleSheet.create({
container: {
flex: 1,
Expand Down

0 comments on commit 65ce20e

Please sign in to comment.