MCPcopy Create free account
hub / github.com/NativeScript/NativeScript / disposeNativeView

Function disposeNativeView

packages/core/ui/core/view-base/index.ts:1096–1107  ·  view source on GitHub ↗

* Clean up references to the native view.

()

Source from the content-addressed store, hash-verified

1094 * Clean up references to the native view.
1095 */
1096 public disposeNativeView() {
1097 // Unset these values so that view checks for resize the next time it's added back to view tree
1098 this._oldLeft = 0;
1099 this._oldTop = 0;
1100 this._oldRight = 0;
1101 this._oldBottom = 0;
1102
1103 this.notify({
1104 eventName: ViewBase.disposeNativeViewEvent,
1105 object: this,
1106 });
1107 }
1108
1109 /**
1110 * Initializes properties/listeners of the native view.

Callers

nothing calls this directly

Calls 1

notifyMethod · 0.65

Tested by

no test coverage detected