File tree Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,9 @@ import { clamp } from './utils';
1919
2020const appPath = knownFolders . currentApp ( ) . path ;
2121
22+ // this remove assert for lottie allowing sync .lottie files loading on main thread
23+ CompatibleLottieLogger . overrideLottieLogger ( ) ;
24+
2225export class LottieView extends LottieViewBase {
2326 nativeViewProtected : CompatibleAnimationView ;
2427 private _imageSourceAffectsLayout = true ;
@@ -69,7 +72,9 @@ export class LottieView extends LottieViewBase {
6972 this . nativeViewProtected . compatibleAnimation = CompatibleAnimation . alloc ( ) . initWithFilepath ( src ) ;
7073 }
7174 }
72-
75+ if ( this . keyPathColors ) {
76+ this [ keyPathColorsProperty . setNative ] ( this . keyPathColors ) ;
77+ }
7378 if ( this . _imageSourceAffectsLayout ) {
7479 this . requestLayout ( ) ;
7580 }
Original file line number Diff line number Diff line change 1+ /* eslint-disable @typescript-eslint/unified-signatures */
12declare class AnimatedButton extends AnimatedControl {
23 static alloc ( ) : AnimatedButton ; // inherited from NSObject
34
@@ -292,6 +293,14 @@ declare class CompatibleDictionaryTextProvider extends NSObject {
292293 initWithValues ( values : NSDictionary < string , string > ) : this;
293294}
294295
296+ declare class CompatibleLottieLogger extends NSObject {
297+ static alloc ( ) : CompatibleLottieLogger ; // inherited from NSObject
298+
299+ static new ( ) : CompatibleLottieLogger ; // inherited from NSObject
300+
301+ static overrideLottieLogger ( ) : void ;
302+ }
303+
295304declare const enum CompatibleRenderingEngineOption {
296305 Shared = 0 ,
297306
You can’t perform that action at this time.
0 commit comments