import { useSafeAreaInsets } from 'react-native-safe-area-context'; import type { SafeAreaInsets } from '../../type'; /** * React Native build: delegates to react-native-safe-area-context and * guards against the provider missing at the root of the tree by * falling back to a zeroed inset object (identical to the legacy * aldenui implementation). */ const useSafeAreaInset = (): Required => { const insets = useSafeAreaInsets(); return insets || { top: 0, bottom: 0, left: 0, right: 0 }; }; export default useSafeAreaInset;