Files
beenvoice-app/lib/top-chrome-insets.ts
T
soconnor 14c880123c Add beenvoice mobile companion app with full dark mode support.
Expo app with dashboard, time clock, invoices, and settings — native tabs, glass UI, theme-aware components, and iOS Live Activities.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-17 22:36:37 -04:00

16 lines
559 B
TypeScript

import { useSafeAreaInsets } from "react-native-safe-area-context";
import { spacing } from "@/constants/theme";
/** Matches `TopChrome` row height. */
export const TOP_CHROME_ROW_HEIGHT = 40;
/** Bottom inset below the chrome row (`TopChromeBar` `paddingBottom`). */
export const TOP_CHROME_PADDING_BOTTOM = spacing.xs;
/** Total height of the blurred status-bar chrome (safe area + content row). */
export function useTopChromeHeight(): number {
const { top } = useSafeAreaInsets();
return top + TOP_CHROME_ROW_HEIGHT + TOP_CHROME_PADDING_BOTTOM;
}