Skip to content

Commit

Permalink
fix: fix memory leak in Menu hide animation (#1965)
Browse files Browse the repository at this point in the history
  • Loading branch information
brunohkbx committed Jun 18, 2020
1 parent 6086423 commit eb67a20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Menu/Menu.tsx
Expand Up @@ -325,7 +325,7 @@ class Menu extends React.Component<Props, State> {
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 });
Expand Down

0 comments on commit eb67a20

Please sign in to comment.