From 8468c1ce965520b09773532784c4760b8f032e60 Mon Sep 17 00:00:00 2001 From: Reinaldo Neto Date: Mon, 23 Oct 2023 18:02:16 -0300 Subject: [PATCH] remove react.memo from playbutton --- app/containers/AudioPlayer/PlayButton.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/containers/AudioPlayer/PlayButton.tsx b/app/containers/AudioPlayer/PlayButton.tsx index f74645776..1f58c2352 100644 --- a/app/containers/AudioPlayer/PlayButton.tsx +++ b/app/containers/AudioPlayer/PlayButton.tsx @@ -18,7 +18,7 @@ const BUTTON_HIT_SLOP = { top: 12, right: 12, bottom: 12, left: 12 }; type TCustomIconName = 'arrow-down' | 'play-shape-filled' | 'pause-shape-filled'; -const PlayButton = React.memo(({ loading, paused, onPress, disabled, isReadyToPlay }: IButton) => { +const PlayButton = ({ loading, paused, onPress, disabled, isReadyToPlay }: IButton) => { const { colors } = useTheme(); let customIconName: TCustomIconName = 'arrow-down'; @@ -40,6 +40,6 @@ const PlayButton = React.memo(({ loading, paused, onPress, disabled, isReadyToPl )} ); -}); +}; export default PlayButton;