mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
rename:
_createNativeView to createNativeView; _initNativeView to initNativeView _disposeNativeView to disposeNativeView _resetNativeView to resetNativeView
This commit is contained in:
@@ -68,15 +68,15 @@ class NativeGridLayout extends org.nativescript.widgets.GridLayout {
|
||||
export class MyButton extends Button implements def.MyButton {
|
||||
nativeView: NativeButton;
|
||||
|
||||
public _createNativeView() {
|
||||
public createNativeView() {
|
||||
return new NativeButton(this._context, this);
|
||||
}
|
||||
|
||||
public _initNativeView(): void {
|
||||
public initNativeView(): void {
|
||||
this.nativeView.owner = this;
|
||||
}
|
||||
|
||||
public _disposeNativeView() {
|
||||
public disposeNativeView() {
|
||||
this.nativeView.owner = undefined;
|
||||
}
|
||||
|
||||
@@ -121,15 +121,15 @@ export class MyButton extends Button implements def.MyButton {
|
||||
export class MyStackLayout extends StackLayout implements def.MyStackLayout {
|
||||
nativeView: NativeStackLayout;
|
||||
|
||||
public _createNativeView() {
|
||||
public createNativeView() {
|
||||
return new NativeStackLayout(this._context, this);
|
||||
}
|
||||
|
||||
public _initNativeView(): void {
|
||||
public initNativeView(): void {
|
||||
this.nativeView.owner = this;
|
||||
}
|
||||
|
||||
public _disposeNativeView() {
|
||||
public disposeNativeView() {
|
||||
this.nativeView.owner = undefined;
|
||||
}
|
||||
|
||||
@@ -174,15 +174,15 @@ export class MyStackLayout extends StackLayout implements def.MyStackLayout {
|
||||
export class MyGridLayout extends GridLayout implements def.MyGridLayout {
|
||||
nativeView: NativeGridLayout;
|
||||
|
||||
public _createNativeView() {
|
||||
public createNativeView() {
|
||||
return new NativeGridLayout(this._context, this);
|
||||
}
|
||||
|
||||
public _initNativeView(): void {
|
||||
public initNativeView(): void {
|
||||
this.nativeView.owner = this;
|
||||
}
|
||||
|
||||
public _disposeNativeView() {
|
||||
public disposeNativeView() {
|
||||
this.nativeView.owner = undefined;
|
||||
}
|
||||
|
||||
|
||||
@@ -281,13 +281,13 @@ class TestView extends Layout {
|
||||
this.nativeView = undefined;
|
||||
}
|
||||
|
||||
public _createNativeView() {
|
||||
public createNativeView() {
|
||||
if (isIOS) {
|
||||
this.nativeView = this._nativeView;
|
||||
return this._nativeView;
|
||||
}
|
||||
|
||||
return super._createNativeView();
|
||||
return super.createNativeView();
|
||||
}
|
||||
|
||||
public toString() {
|
||||
|
||||
Reference in New Issue
Block a user