From eb67a20abfe1bb72d55e7ba7f35a2af226ebc5b2 Mon Sep 17 00:00:00 2001 From: Bruno Castro Date: Thu, 18 Jun 2020 10:24:27 -0300 Subject: [PATCH] fix: fix memory leak in Menu hide animation (#1965) --- src/components/Menu/Menu.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Menu/Menu.tsx b/src/components/Menu/Menu.tsx index ec360de1e6..328642d070 100644 --- a/src/components/Menu/Menu.tsx +++ b/src/components/Menu/Menu.tsx @@ -325,7 +325,7 @@ class Menu extends React.Component { duration: ANIMATION_DURATION * animation.scale, easing: EASING, useNativeDriver: true, - }).start(finished => { + }).start(({ finished }) => { if (finished) { this.setState({ menuLayout: { width: 0, height: 0 }, rendered: false }); this.state.scaleAnimation.setValue({ x: 0, y: 0 });