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

Method createNativeView

packages/core/ui/page/index.android.ts:16–25  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

14 nativeViewProtected: org.nativescript.widgets.GridLayout;
15
16 public createNativeView() {
17 const layout = new org.nativescript.widgets.GridLayout(this._context);
18 layout.addRowsFromJSON(
19 JSON.stringify([
20 { value: 1, type: 0 /* org.nativescript.widgets.GridUnitType.auto */ },
21 { value: 1, type: 2 /* org.nativescript.widgets.GridUnitType.star */ },
22 ]),
23 );
24 return layout;
25 }
26
27 public initNativeView(): void {
28 super.initNativeView();

Callers

nothing calls this directly

Calls 1

addRowsFromJSONMethod · 0.95

Tested by

no test coverage detected