feat: 首页更新

This commit is contained in:
2025-11-12 00:13:26 +08:00
parent b48cce06f4
commit 9ef9233797
46 changed files with 660 additions and 369 deletions

View File

@@ -14,7 +14,7 @@ import {
Animated,
} from 'react-native';
import { createThemeStyles } from '@/theme';
import Colors from '@/constants/Colors';
import { useColorScheme } from '@/hooks';
import { mockNavItems } from '@/services/mockHomeService';
import type { NavItem } from '@/types/home';
@@ -66,7 +66,6 @@ const styles = createThemeStyles((colors) => ({
}));
interface FastFootNavProps {
theme: 'light' | 'dark';
items?: NavItem[];
onTabPress?: (tabId: string, action: string) => void;
}
@@ -74,8 +73,9 @@ interface FastFootNavProps {
/**
* 快速底部导航组件
*/
export default function FastFootNav({ theme, items: propItems, onTabPress }: FastFootNavProps) {
const s = styles[theme];
export default function FastFootNav({ items: propItems, onTabPress }: FastFootNavProps) {
const colorScheme = useColorScheme();
const s = styles[colorScheme];
const [items, setItems] = useState<NavItem[]>(propItems || []);
const [selectedId, setSelectedId] = useState<string | null>(null);