mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
Inital animations were not played in android, since CSS in android is now applied before the native view is created/assigned
This commit is contained in:
@@ -608,13 +608,19 @@ export abstract class ViewBase extends Observable implements ViewBaseDefinition
|
||||
}
|
||||
|
||||
public initNativeView(): void {
|
||||
//
|
||||
// No initNativeView(this)?
|
||||
if (this._cssState) {
|
||||
this._cssState.playPendingKeyframeAnimations();
|
||||
}
|
||||
}
|
||||
|
||||
public resetNativeView(): void {
|
||||
if (this.nativeView && this.recycleNativeView && isAndroid) {
|
||||
resetNativeView(this);
|
||||
}
|
||||
if (this._cssState) {
|
||||
this._cancelAllAnimations();
|
||||
}
|
||||
}
|
||||
|
||||
public _setupUI(context: android.content.Context, atIndex?: number, parentIsLoaded?: boolean) {
|
||||
|
||||
Reference in New Issue
Block a user