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
26 lines
626 B
TypeScript
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;
|
|
};
|