Skip to content

Commit 37def77

Browse files
author
Pierre Poupin
committed
chore(example): add missing memo
1 parent c77915e commit 37def77

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

packages/example/src/modules/program/view/Program.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ const Label = React.memo(({ label }: { label: string }) => {
1616
});
1717
Label.displayName = 'Label';
1818

19-
export const Program = React.forwardRef<View, ProgramProps>(
20-
({ isFocused = false, programInfo, label }, ref) => {
19+
export const Program = React.memo(
20+
React.forwardRef<View, ProgramProps>(({ isFocused = false, programInfo, label }, ref) => {
2121
const imageSource = programInfo.image;
2222

2323
const scaleAnimation = useFocusAnimation(isFocused);
@@ -36,7 +36,7 @@ export const Program = React.forwardRef<View, ProgramProps>(
3636
) : null}
3737
</ProgramContainer>
3838
);
39-
},
39+
}),
4040
);
4141

4242
Program.displayName = 'Program';

0 commit comments

Comments
 (0)