import { Tabs } from 'expo-router'; import { Ionicons } from '@expo/vector-icons'; import type { ComponentProps } from 'react'; import { StyleSheet, Text } from 'react-native'; import type { ColorValue } from 'react-native'; import { colors } from '../../src/theme'; type IconName = ComponentProps['name']; /** * 根据选中状态返回实心/描边图标 */ function tabIcon(filled: IconName, outline: IconName) { return ({ color, size, focused }: { color: ColorValue; size: number; focused: boolean }) => ( ); } /** * 底部 Tab 导航:首页默认选中,蓝色高亮 */ export default function TabLayout() { return ( ( {children} ), }} > ); } const styles = StyleSheet.create({ labelText: { fontSize: 11, }, });