/** * App Navigator * Bottom tab navigation with sleek design */ import React from 'react'; import { createBottomTabNavigator } from '@react-navigation/bottom-tabs'; import { NavigationContainer } from '@react-navigation/native'; import { StyleSheet, View, Text } from 'react-native'; import { theme } from '../theme'; // Screens import HomeScreen from '../screens/HomeScreen'; import MessagesScreen from '../screens/MessagesScreen'; import GamesScreen from '../screens/GamesScreen'; import FriendsScreen from '../screens/FriendsScreen'; import ProfileScreen from '../screens/ProfileScreen'; const Tab = createBottomTabNavigator(); const TabIcon = ({ focused, emoji }: { focused: boolean; emoji: string }) => ( {emoji} ); export default function AppNavigator() { return ( , }} /> , tabBarBadge: 3, // Unread count }} /> , }} /> , }} /> , }} /> ); } const styles = StyleSheet.create({ tabBar: { backgroundColor: theme.colors.background, borderTopWidth: 1, borderTopColor: theme.colors.gray900, height: theme.layout.tabBarHeight, paddingBottom: 8, paddingTop: 8, }, tabLabel: { fontSize: theme.typography.fontSize.xs, fontWeight: theme.typography.fontWeight.medium, }, tabIcon: { width: 40, height: 40, borderRadius: theme.borderRadius.md, justifyContent: 'center', alignItems: 'center', backgroundColor: 'transparent', }, tabIconActive: { backgroundColor: theme.colors.backgroundTertiary, ...theme.shadows.glow, }, tabEmoji: { fontSize: 24, }, });