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
This commit is contained in:
25
apps/mobile/polyfills/web/safeAreaContext.web.tsx
Normal file
25
apps/mobile/polyfills/web/safeAreaContext.web.tsx
Normal file
@@ -0,0 +1,25 @@
|
||||
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;
|
||||
};
|
||||
Reference in New Issue
Block a user