mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
refactor(core-modules): implement createNativeView and initNativeView for all components
refactor(core-modules): implement createNativeView and initNativeView for all components
This commit is contained in:
committed by
Martin Yankov
parent
71107533bb
commit
46705ee332
@@ -345,19 +345,8 @@ class TestView extends LayoutBase {
|
||||
(<any>this.style).customShortHand = value;
|
||||
}
|
||||
|
||||
private _nativeView;
|
||||
constructor(public name: string) {
|
||||
super();
|
||||
this._nativeView = this.nativeViewProtected;
|
||||
this.nativeViewProtected = undefined;
|
||||
}
|
||||
|
||||
public createNativeView() {
|
||||
if (isIOS) {
|
||||
return this._nativeView;
|
||||
}
|
||||
|
||||
return super.createNativeView();
|
||||
}
|
||||
|
||||
public toString() {
|
||||
|
||||
Reference in New Issue
Block a user