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

Method createNativeView

packages/core/ui/page/index.ios.ts:395–403  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

393 }
394
395 createNativeView() {
396 // View controller can be disposed during view disposal, so make sure to create a new one if not defined
397 if (!this._ios) {
398 const controller = UIViewControllerImpl.initWithOwner(new WeakRef(this));
399 controller.view.backgroundColor = this._backgroundColor;
400 this.viewController = this._ios = controller;
401 }
402 return this._ios.view;
403 }
404
405 disposeNativeView() {
406 this.viewController = null;

Callers

nothing calls this directly

Calls 1

initWithOwnerMethod · 0.45

Tested by

no test coverage detected