Skip to content

Commit 49324a0

Browse files
brunohkbxTrancever
authored andcommitted
fix: fix memory leak in Menu hide animation (#1965)
1 parent 03572ac commit 49324a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/Menu/Menu.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ class Menu extends React.Component<Props, State> {
325325
duration: ANIMATION_DURATION * animation.scale,
326326
easing: EASING,
327327
useNativeDriver: true,
328-
}).start(finished => {
328+
}).start(({ finished }) => {
329329
if (finished) {
330330
this.setState({ menuLayout: { width: 0, height: 0 }, rendered: false });
331331
this.state.scaleAnimation.setValue({ x: 0, y: 0 });

0 commit comments

Comments
 (0)