feat: Introduce Alerts, Clips, and Settings tabs, update theme colors, and enhance ThemedView, ThemedText, and IconSymbol components.

This commit is contained in:
2025-12-06 11:42:00 +00:00
parent 3c31ead3ef
commit ed0faaa4d6
10 changed files with 315 additions and 207 deletions

View File

@@ -1,5 +1,6 @@
import { Tabs } from 'expo-router';
import React from 'react';
import { Platform } from 'react-native';
import { HapticTab } from '@/components/haptic-tab';
import { IconSymbol } from '@/components/ui/icon-symbol';
@@ -13,8 +14,18 @@ export default function TabLayout() {
<Tabs
screenOptions={{
tabBarActiveTintColor: Colors[colorScheme ?? 'light'].tint,
tabBarInactiveTintColor: Colors[colorScheme ?? 'light'].tabIconDefault,
headerShown: false,
tabBarButton: HapticTab,
tabBarStyle: Platform.select({
default: {
backgroundColor: Colors[colorScheme ?? 'light'].background,
borderTopColor: Colors[colorScheme ?? 'light'].border,
borderTopWidth: 1,
elevation: 0,
paddingTop: 8,
},
}),
}}>
<Tabs.Screen
name="index"
@@ -24,10 +35,24 @@ export default function TabLayout() {
}}
/>
<Tabs.Screen
name="explore"
name="alerts"
options={{
title: 'Explore',
tabBarIcon: ({ color }) => <IconSymbol size={28} name="paperplane.fill" color={color} />,
title: 'Alerts',
tabBarIcon: ({ color }) => <IconSymbol size={28} name="bell.fill" color={color} />,
}}
/>
<Tabs.Screen
name="clips"
options={{
title: 'Clips',
tabBarIcon: ({ color }) => <IconSymbol size={28} name="film.fill" color={color} />,
}}
/>
<Tabs.Screen
name="settings"
options={{
title: 'Settings',
tabBarIcon: ({ color }) => <IconSymbol size={28} name="gearshape.fill" color={color} />,
}}
/>
</Tabs>