Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | 6x 27x 27x | import { useSafeAreaInsets } from 'react-native-safe-area-context';
import { isAndroid, isIOS } from '@repo/utils/platform';
import { DEFAULT_NAVIGATION_BOTTOM, SCREEN_HEIGHT } from '@/utils/dimensions';
export const useBalloonContainerMetrics = () => {
const screenInsets = useSafeAreaInsets();
return {
screenInsets,
containerHeight: isAndroid()
? SCREEN_HEIGHT - screenInsets.top / 2 - screenInsets.bottom - DEFAULT_NAVIGATION_BOTTOM
: SCREEN_HEIGHT - screenInsets.top,
highlightBorderRadius: isIOS() ? ('40%' as const) : ('50%' as const),
};
};
|