Skip to content

Commit

Permalink
fix(leak): fixing shine animation to avoid leak
Browse files Browse the repository at this point in the history
  • Loading branch information
mfrachet committed Oct 10, 2018
1 parent d26d2ca commit fa98277
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/animation/shine.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,7 @@ const Shine = ({ children }) => {
toValue: END_VALUE,
duration: DURATION,
}),
]).start(() => {
start();
});
]).start(e => e.finished && start());
}

start();
Expand Down

0 comments on commit fa98277

Please sign in to comment.