File tree Expand file tree Collapse file tree 1 file changed +12
-10
lines changed Expand file tree Collapse file tree 1 file changed +12
-10
lines changed Original file line number Diff line number Diff line change @@ -107,17 +107,19 @@ export class LottieView extends LottieViewBase {
107107 }
108108
109109 public playAnimation ( ) : void {
110- if ( this . nativeView ) {
111- if ( this . completionBlock ) {
112- this . nativeView . playWithCompletion ( ( animationFinished : boolean ) => {
113- if ( this . completionBlock ) {
114- this . completionBlock ( animationFinished ) ;
115- }
116- } ) ;
117- } else {
118- this . nativeView . play ( ) ;
110+ setTimeout ( ( ) => {
111+ if ( this . nativeView ) {
112+ if ( this . completionBlock ) {
113+ this . nativeView . playWithCompletion ( ( animationFinished : boolean ) => {
114+ if ( this . completionBlock ) {
115+ this . completionBlock ( animationFinished ) ;
116+ }
117+ } ) ;
118+ } else {
119+ this . nativeView . play ( ) ;
120+ }
119121 }
120- }
122+ } , 0 ) ;
121123 }
122124
123125 public playAnimationFromProgressToProgress ( startProgress : number , endProgress : number ) : void {
You can’t perform that action at this time.
0 commit comments