MCPcopy Create free account
hub / github.com/NativeScript/SimDeck / fallbackTabBarFrame

Function fallbackTabBarFrame

packages/nativescript-inspector/src/index.ts:1744–1761  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1742}
1743
1744function fallbackTabBarFrame(): JSONObject {
1745 const screen = rectValue(UIScreen.mainScreen.bounds) ?? {
1746 x: 0,
1747 y: 0,
1748 width: 0,
1749 height: 0,
1750 };
1751 const height = Math.min(
1752 83,
1753 Math.max(49, rectNumber(screen, "height") * 0.095),
1754 );
1755 return {
1756 x: rectNumber(screen, "x"),
1757 y: rectNumber(screen, "y") + rectNumber(screen, "height") - height,
1758 width: rectNumber(screen, "width"),
1759 height,
1760 };
1761}
1762
1763function tabItemFallbackFrame(
1764 tabBarFrame: JSONObject,

Callers 1

Calls 3

rectValueFunction · 0.85
rectNumberFunction · 0.85
maxMethod · 0.80

Tested by

no test coverage detected