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

Method createNativeView

packages/core/ui/frame/index.ios.ts:43–56  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

41 }
42
43 createNativeView() {
44 // Push frame back in frame stack since it was removed in disposeNativeView() method.
45 if (this._currentEntry) {
46 this._pushInFrameStack();
47 }
48
49 // View controller can be disposed during view disposal, so make sure to create a new one if not defined
50 if (!this._ios) {
51 this._ios = new iOSFrame(this);
52 this.viewController = this._ios.controller;
53 }
54
55 return this._ios.controller.view;
56 }
57
58 public disposeNativeView() {
59 const current = this._currentEntry;

Callers

nothing calls this directly

Calls 1

_pushInFrameStackMethod · 0.80

Tested by

no test coverage detected