Skip to content

Commit

Permalink
fix(ios): ensure animation start playing on src change with autoPlay
Browse files Browse the repository at this point in the history
  • Loading branch information
farfromrefug committed Mar 15, 2024
1 parent d78d82d commit 80ea818
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/lottie.ios.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,10 @@ export class LottieView extends LottieViewBase {
if (this._imageSourceAffectsLayout) {
this.requestLayout();
}

if (this.autoPlay && !this.isAnimating()) {
this.playAnimation();
}
}

[loopProperty.setNative](loop: boolean) {
Expand Down

0 comments on commit 80ea818

Please sign in to comment.