Skip to content

Commit 80ea818

Browse files
committed
fix(ios): ensure animation start playing on src change with autoPlay
1 parent d78d82d commit 80ea818

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/lottie.ios.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,10 @@ export class LottieView extends LottieViewBase {
7878
if (this._imageSourceAffectsLayout) {
7979
this.requestLayout();
8080
}
81+
82+
if (this.autoPlay && !this.isAnimating()) {
83+
this.playAnimation();
84+
}
8185
}
8286

8387
[loopProperty.setNative](loop: boolean) {

0 commit comments

Comments
 (0)