Skip to content

Commit 129d732

Browse files
author
Marvin Frachet
authored
fix(leak): fixing shine animation to avoid leak (#57)
1 parent d26d2ca commit 129d732

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/animation/shine.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,7 @@ const Shine = ({ children }) => {
2828
toValue: END_VALUE,
2929
duration: DURATION,
3030
}),
31-
]).start(() => {
32-
start();
33-
});
31+
]).start(e => e.finished && start());
3432
}
3533

3634
start();

0 commit comments

Comments
 (0)