minor UI/UX improvement

This commit is contained in:
Boof2015
2026-06-30 01:00:33 -04:00
parent 19a2e30d0b
commit 8f23c6a1e2
2 changed files with 129 additions and 16 deletions
+9
View File
@@ -1,4 +1,7 @@
import { Tabs } from 'expo-router';
// RN's Easing (not reanimated): the bottom-tabs scene transition runs on legacy
// Animated.timing and may use the native driver, so the easing must be serializable.
import { Easing } from 'react-native';
import { TabBar, type TabItem } from '@/components/TabBar';
import { colors } from '@/theme';
@@ -8,6 +11,12 @@ export default function TabsLayout() {
screenOptions={{
headerShown: false,
sceneStyle: { backgroundColor: colors.bgPrimary },
// Directional slide + cross-fade between tabs, following tab order.
animation: 'shift',
transitionSpec: {
animation: 'timing',
config: { duration: 200, easing: Easing.out(Easing.cubic) },
},
}}
tabBar={({ state, navigation }) => {
const items: TabItem[] = state.routes.map((route, index) => ({