Pretty up code. Add all my default stuff that I like

This commit is contained in:
2025-01-28 10:17:33 -06:00
parent 5a821fc6b5
commit 0dfb7f190d
20 changed files with 191 additions and 182 deletions

View File

@ -3,7 +3,7 @@ import { BlurView } from 'expo-blur';
import { StyleSheet } from 'react-native';
import { useSafeAreaInsets } from 'react-native-safe-area-context';
export default function BlurTabBarBackground() {
const BlurTabBarBackground = () => {
return (
<BlurView
// System chrome material automatically adapts to the system's theme
@ -13,10 +13,11 @@ export default function BlurTabBarBackground() {
style={StyleSheet.absoluteFill}
/>
);
}
};
export default BlurTabBarBackground;
export function useBottomTabOverflow() {
export const useBottomTabOverflow = () => {
const tabHeight = useBottomTabBarHeight();
const { bottom } = useSafeAreaInsets();
return tabHeight - bottom;
}
};