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

Method initNativeView

packages/core/ui/core/view/index.android.ts:831–841  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

829 }
830
831 public initNativeView(): void {
832 super.initNativeView();
833
834 if (this.needsOnLayoutChangeListener()) {
835 this.setOnLayoutChangeListener();
836 }
837
838 if (!this.insetListenerIsSet && this.needsInsetListener) {
839 this.setInsetListener();
840 }
841 }
842
843 public needsOnLayoutChangeListener() {
844 return this.hasListeners(ViewCommon.layoutChangedEvent);

Callers 1

setNativeViewFunction · 0.45

Calls 3

setInsetListenerMethod · 0.95

Tested by

no test coverage detected