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

Function getViewById

packages/core/debugger/devtools-elements.common.ts:25–33  ·  view source on GitHub ↗
(nodeId: number)

Source from the content-addressed store, hash-verified

23}
24
25function getViewById(nodeId: number): ViewBase {
26 const node = getNodeById(nodeId);
27 let view;
28 if (node) {
29 view = node.viewRef.get();
30 }
31
32 return view;
33}
34
35export function getDocument() {
36 const appRoot = getAppRootView();

Callers 2

getComputedStylesForNodeFunction · 0.70

Calls 2

getNodeByIdFunction · 0.90
getMethod · 0.65

Tested by

no test coverage detected