Files
solelog/apps/mobile/polyfills/web/safeAreaContext.web.tsx
Bas van Rossem d94d0b188b Initial commit: code as received (Create/Anything export)
Insole-production time tracker exported from the Create/Anything AI
platform. Baseline snapshot before any reverse-engineering or cleanup.

- apps/mobile: Expo Router app (iOS/Android/web), the only workspace
- publisher/: standalone OpenNext/AWS deploy tooling for the web side
- Backend (/api/tasks, /api/logs + DB) lives remotely, not in this repo
2026-06-17 10:19:33 +02:00

26 lines
626 B
TypeScript

export {
SafeAreaProvider,
SafeAreaInsetsContext,
SafeAreaFrameContext,
useSafeAreaFrame,
initialWindowMetrics,
} from 'react-native-safe-area-context/lib/commonjs';
import { useSafeAreaInsets as useNativeSafeAreaInsets } from 'react-native-safe-area-context/lib/commonjs';
export { SafeAreaView } from './SafeAreaView.web';
export const useSafeAreaInsets = () => {
const isTabletAndAbove =
typeof window !== 'undefined' ? window.self !== window.top : true;
const insets = useNativeSafeAreaInsets();
if (isTabletAndAbove) {
return {
left: 0,
right: 0,
top: 64,
bottom: 34,
};
}
return insets;
};