diff --git a/src/Animate.js b/src/Animate.js index 501de70..59b2029 100644 --- a/src/Animate.js +++ b/src/Animate.js @@ -112,6 +112,7 @@ class Animate extends PureComponent { componentWillUnmount() { this.mounted = false; + const { onAnimationEnd } = this.props; if (this.unSubscribe) { this.unSubscribe(); @@ -125,6 +126,10 @@ class Animate extends PureComponent { if (this.stopJSAnimation) { this.stopJSAnimation(); } + + if (onAnimationEnd) { + onAnimationEnd(); + } } handleStyleChange(style) {