Dynamic Blur TabBar with Reanimated and Expo Blur
Tuesday, October 15, 2024
Scan to try on your device
Need the app?
reanimated
expo-blur
react-navigation
expo-router
demos
dynamic-blur-tabs
An ongoing collection of React Native animations crafted with Reanimated, Gesture Handler, and Skia.
TypeScript
3.2k
296
A bottom tab navigator with dynamic blur effects based on scroll position. Built with React Navigation.
What's This About?
This component creates a tab bar that:
Shows blur effects while scrolling
Uses React Navigation for routing
Supports multiple screens
Freezes inactive screens
Technical Implementation
The component uses:
React Navigation's bottom tabs
Custom tab bar component
Screen freezing for performance
Dynamic screen mapping
Gradient backgrounds
Usage
// Basic usage
<DynamicBlurTabs />;
// Component structure
const BottomTab = createBottomTabNavigator();
<BottomTab.Navigator
initialRouteName="home"
screenOptions={{
headerShown: false,
}}
tabBar={(props) => <BottomTabBar {...props} />}
>
{screens.map((screen) => (
<BottomTab.Screen
key={screen.name}
name={screen.name}
component={screen.component}
options={{ freezeOnBlur: true }}
/>
))}
</BottomTab.Navigator>;
Unlock the beauty of React Native animations
Learn Reanimated, Gesture Handler & Skia with Reanimate.dev
Feedback on Dynamic Blur Tabs
Ideas, bugs, or anything that felt off: I read every message. For anything else, write to hello@reactiive.io.
Send feedback