Disable recycling of native views

createNativeView will set iOS nativeView if it is null/undefined
This commit is contained in:
Hristo Hristov
2017-03-28 18:08:39 +03:00
parent 84e726e6b9
commit e6250e718a
59 changed files with 112 additions and 97 deletions

View File

@ -21,10 +21,11 @@ export class Label extends TextBase implements LabelDefinition {
}
public initNativeView(): void {
super.initNativeView();
const textView = this.nativeView;
textView.setSingleLine(true);
// textView.setEllipsize(android.text.TextUtils.TruncateAt.END);
textView.setEllipsize(android.text.TextUtils.TruncateAt.END);
}
}
Label.prototype.recycleNativeView = true;
// Label.prototype.recycleNativeView = true;