// src/navigation/TabNavigator.tsx — Bottom tabs: DASH / HIST / REC / TALK / SET import { View, StyleSheet, Pressable, Platform } from 'react-native' import { createBottomTabNavigator } from '@react-navigation/bottom-tabs' import { d3roNativePalette } from '@d3ro/ui-native' import DashScreen from '../screens/DashScreen' import HistoryScreen from '../screens/HistoryScreen' import RecordScreen from '../screens/RecordScreen' import TalkScreen from '../screens/TalkScreen' import SettingsScreen from '../screens/SettingsScreen' const MONO = Platform.OS === 'ios' ? 'Menlo' : 'monospace' const Tab = createBottomTabNavigator() function TabIcon({ type, color }: { type: string; color: string }): React.ReactElement { if (type === 'dash') { return ( {[0, 1, 2, 3].map((i) => ( ))} ) } if (type === 'hist') { return ( ) } if (type === 'talk') { return } if (type === 'set') { return } return } function RecordFAB(): React.ReactElement { return ( ) } export default function TabNavigator(): React.ReactElement { return ( , }} /> , }} /> , tabBarLabel: () => null, }} /> , }} /> , }} /> ) } const iconStyles = StyleSheet.create({ grid: { width: 22, height: 22, flexDirection: 'row', flexWrap: 'wrap', gap: 2 }, gridCell: { width: 9, height: 9, borderWidth: 1.5, borderRadius: 2 }, circle: { width: 22, height: 22, borderRadius: 11, borderWidth: 1.5, justifyContent: 'center', alignItems: 'center' }, hand: { width: 1.5, height: 7, position: 'absolute', top: 3 }, chat: { width: 22, height: 18, borderWidth: 1.5, borderRadius: 4 }, gear: { width: 22, height: 22, borderWidth: 1.5, borderRadius: 11 }, }) const fabStyles = StyleSheet.create({ fab: { position: 'relative', top: -20, width: 56, height: 56, borderRadius: 28, backgroundColor: d3roNativePalette.accent.main, justifyContent: 'center', alignItems: 'center', shadowColor: d3roNativePalette.accent.main, shadowOffset: { width: 0, height: 0 }, shadowOpacity: 0.4, shadowRadius: 10, elevation: 8, borderWidth: 4, borderColor: d3roNativePalette.bg.app, }, micIcon: { alignItems: 'center' }, micBody: { width: 8, height: 14, borderRadius: 4, backgroundColor: d3roNativePalette.bg.app, marginBottom: 2 }, micBase: { width: 14, height: 2, borderRadius: 1, backgroundColor: d3roNativePalette.bg.app }, })