MCPcopy Index your code
hub / github.com/NativeScript/NativeScript / getCurrentPage

Function getCurrentPage

packages/core/ui/dialogs/dialogs-common.ts:249–256  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

247}
248
249export function getCurrentPage(): Page {
250 const topmostFrame = Frame.topmost();
251 if (topmostFrame) {
252 return topmostFrame.currentPage;
253 }
254
255 return undefined;
256}
257
258function applySelectors<T extends View>(view: T, callback: (view: T) => void) {
259 const currentPage = getCurrentPage();

Callers 1

applySelectorsFunction · 0.70

Calls 1

topmostMethod · 0.45

Tested by

no test coverage detected