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

Function getViews

apps/automated/src/ui/layouts/flexbox-layout-tests.ts:94–106  ·  view source on GitHub ↗
(template: string)

Source from the content-addressed store, hash-verified

92}
93
94let getViews = (template: string) => {
95 let root = Builder.parse(template);
96
97 return {
98 root,
99 flexbox: root.getViewById('flexbox') as FlexboxLayout,
100 text1: root.getViewById('text1') as Label,
101 text2: root.getViewById('text2') as Label,
102 text3: root.getViewById('text3') as Label,
103 text4: root.getViewById('text4') as Label,
104 text5: root.getViewById('text5') as Label,
105 };
106};
107
108let activity_flex_wrap = () =>
109 getViews(

Calls 1

parseMethod · 0.65

Tested by

no test coverage detected