recycling now happens only if nativeView and android properties are not accessed. (#4627)

recycleNativeView filed now accepts: "always" | "never" | "auto". Always will recycle the nativeView no matter if its nativeView or android proprties are accessed. Never will disable recycling. Auto will recycle it only if nativeView and android properties are not accessed.
This commit is contained in:
Hristo Hristov
2017-08-01 15:04:16 +03:00
committed by GitHub
parent 8535e5459a
commit 0f14101238
110 changed files with 844 additions and 834 deletions

View File

@ -12,8 +12,8 @@ export class TextView extends EditableTextBase implements TextViewDefinition {
public resetNativeView(): void {
super.resetNativeView();
this.nativeView.setGravity(android.view.Gravity.TOP | android.view.Gravity.START);
this.nativeViewProtected.setGravity(android.view.Gravity.TOP | android.view.Gravity.START);
}
}
TextView.prototype.recycleNativeView = true;
TextView.prototype.recycleNativeView = "auto";