diff options
Diffstat (limited to 'components/ui/TabBarBackground.ios.tsx')
-rw-r--r-- | components/ui/TabBarBackground.ios.tsx | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/components/ui/TabBarBackground.ios.tsx b/components/ui/TabBarBackground.ios.tsx new file mode 100644 index 0000000..495b2d4 --- /dev/null +++ b/components/ui/TabBarBackground.ios.tsx @@ -0,0 +1,19 @@ +import { useBottomTabBarHeight } from '@react-navigation/bottom-tabs'; +import { BlurView } from 'expo-blur'; +import { StyleSheet } from 'react-native'; + +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() { + return useBottomTabBarHeight(); +} |