import { View, Text, ScrollView, Image, Switch, Pressable, Dimensions } from 'react-native'; import { SafeAreaView } from 'react-native-safe-area-context'; import { router } from 'expo-router'; import { useAuth } from '../../context/AuthProvider'; import { useColorScheme } from 'nativewind'; import { useState, useEffect } from 'react'; import { AccountSettingIconSvg, ActivitySvg, MyCarSvg, DarkModeSvg, QuestionMarkIconSvg, SettingIconSvg, VipCodeIcoonSvg, WalletSvg } from '../global/SVG'; const AccountMainPageComponent = () => { const { user, logout } = useAuth(); const { colorScheme, toggleColorScheme } = useColorScheme(); const screenWidth = Dimensions.get('window').width; const imageWidth = screenWidth * 0.9; // 90% of screen width const aspectRatio = 210 / 375; return ( {user?.nickname} router.push('/(account)/(wallet)/walletPage')} > 錢包 {/* router.replace('myVehiclePage')} > 我的車輛 */} router.replace('vipQrPage')} > VIP Code router.push('/activityRecordPage')} > 充電記錄 router.push('uberVerificationPage')}> router.push('/accountSettingPage')} className="flex-row items-center" hitSlop={{ top: 10, bottom: 10, left: 10, right: 10 }} > 帳戶管理 router.push('/assistancePage')} className="flex-row items-center" hitSlop={{ top: 10, bottom: 10, left: 10, right: 10 }} > 排除解難 {/* router.push('/assistancePage')} className="flex-row items-center" hitSlop={{ top: 10, bottom: 10, left: 10, right: 10 }} > 深色模式 */} 登出 ); }; export default AccountMainPageComponent;