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

Function topmost

packages/core/ui/frame/frame-stack.ts:5–11  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3export const frameStack: Array<FrameBase> = [];
4
5export function topmost(): FrameBase {
6 if (frameStack.length > 0) {
7 return frameStack[frameStack.length - 1];
8 }
9
10 return undefined;
11}
12
13export function _isFrameStackEmpty(): boolean {
14 return frameStack.length === 0;

Callers 8

dismissKeyboardFunction · 0.90
dismissSoftInputFunction · 0.90
onBackPressedMethod · 0.90
onTapFunction · 0.90
onTapFunction · 0.90
onTapFunction · 0.90
onTapFunction · 0.90
_popFromFrameStackFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected