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:
Panayot Cankov
2017-04-11 16:49:14 +03:00
parent 4069bcea02
commit 108f4c287d
2 changed files with 19 additions and 3 deletions

View File

@@ -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) {