From 88c337e76a545c16d598bfe17f3d81a3f24cd009 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartosz=20Legi=C4=99=C4=87?= Date: Fri, 4 Oct 2019 20:20:22 +0200 Subject: [PATCH] fix(getanimationobject): bring back getAnimationObject fix #16 --- src/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index 1ca48ae..b52d09c 100644 --- a/src/index.js +++ b/src/index.js @@ -165,7 +165,7 @@ export default class AnimateCC extends React.Component { } handleComplete = (evt, comp) => { - const { animationName, paused } = this.props; + const { animationName, paused, getAnimationObject } = this.props; const lib = comp.getLibrary(); @@ -182,6 +182,7 @@ export default class AnimateCC extends React.Component { } const exportRoot = new lib[animationName](); + getAnimationObject(exportRoot); this.lib = exportRoot; this.lib.tickEnabled = !paused;