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

Function descendantsCallback

packages/core/ui/core/view-base/index.ts:144–153  ·  view source on GitHub ↗
(child: ViewBase)

Source from the content-addressed store, hash-verified

142
143 let retVal: ViewBase;
144 const descendantsCallback = function (child: ViewBase): boolean {
145 if (child.id === id) {
146 retVal = child;
147
148 // break the iteration by returning false
149 return false;
150 }
151
152 return true;
153 };
154
155 eachDescendant(view, descendantsCallback);
156

Callers

nothing calls this directly

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected