Pretty up code. Add all my default stuff that I like
This commit is contained in:
@ -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;
|
||||
}
|
||||
};
|
||||
|
Reference in New Issue
Block a user