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

Method layoutView

packages/core/ui/content-view/index.ts:35–51  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

33 }
34
35 get layoutView(): View {
36 let result: View;
37
38 if (this._content) {
39 let first = true;
40 this._content._eachLayoutView((child) => {
41 if (first) {
42 first = false;
43 result = child;
44 } else {
45 throw new Error('More than one layout child inside a ContentView');
46 }
47 });
48 }
49
50 return result;
51 }
52
53 get _childrenCount(): number {
54 return this._content ? 1 : 0;

Callers 2

viewDidLayoutSubviewsMethod · 0.45

Calls 1

_eachLayoutViewMethod · 0.80

Tested by

no test coverage detected