Skip to content

Commit

Permalink
fix: add missing condition
Browse files Browse the repository at this point in the history
  • Loading branch information
matinzd committed Feb 7, 2023
1 parent 664444b commit bd44aff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/ios/LottieReactNative/ContainerView.swift
Expand Up @@ -266,7 +266,7 @@ class ContainerView: RCTView {
animationView?.loopMode = loop
applyColorProperties()

if (self.autoPlay) {
if (self.autoPlay && animationView?.isAnimationPlaying == false) {
self.play()
}
}
Expand Down

0 comments on commit bd44aff

Please sign in to comment.