From 5205cda154c13605ac25a668f8bfe5415570cf90 Mon Sep 17 00:00:00 2001 From: imtheu Date: Thu, 18 Jun 2020 21:06:45 -0300 Subject: [PATCH] Fix 'this.stops is not a function' error --- src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index 465fd8c..b3df715 100644 --- a/src/index.js +++ b/src/index.js @@ -38,7 +38,7 @@ export default class Lottie extends React.Component { this.setAnimationControl(); if (this.props.isStopped) { - this.stops(); + this.stop(); } else if (this.props.segments) { this.playSegments(true); } else {