mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-26 03:01:51 +08:00
Disable recycling of native views
createNativeView will set iOS nativeView if it is null/undefined
This commit is contained in:
@ -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;
|
Reference in New Issue
Block a user