1
0
mirror of https://github.com/DocNR/POWR.git synced 2025-05-24 02:42:07 +00:00
POWR/components/ui/TabBarBackground.ios.tsx
DocNR d06c90d922 Initial commit
Generated by create-expo-app 3.2.0.
2025-02-01 21:07:25 -05:00

23 lines
697 B
TypeScript

import { useBottomTabBarHeight } from '@react-navigation/bottom-tabs';
import { BlurView } from 'expo-blur';
import { StyleSheet } from 'react-native';
import { useSafeAreaInsets } from 'react-native-safe-area-context';
export default function BlurTabBarBackground() {
return (
<BlurView
// System chrome material automatically adapts to the system's theme
// and matches the native tab bar appearance on iOS.
tint="systemChromeMaterial"
intensity={100}
style={StyleSheet.absoluteFill}
/>
);
}
export function useBottomTabOverflow() {
const tabHeight = useBottomTabBarHeight();
const { bottom } = useSafeAreaInsets();
return tabHeight - bottom;
}