import { View, Text, Pressable, Image, ScrollView, Alert, ImageBackground, ActivityIndicator, Dimensions } from 'react-native'; import { SafeAreaView } from 'react-native-safe-area-context'; import { router, useLocalSearchParams } from 'expo-router'; import { CrossLogoSvg, PreviousPageBlackSvg } from '../../../../component/global/SVG'; import { useEffect, useState } from 'react'; import DisplayedOnlyCouponTabView from '../../../../component/global/displayedOnlyCouponTabView'; import NotificationTabView from '../../../../component/global/notificationTabViewComponent'; import { chargeStationService } from '../../../../service/chargeStationService'; import { formatToChineseDateTime } from '../../../../util/lib'; const ChargingDetailPage = () => { const screenHeight = Dimensions.get('window').height; const { promotion } = useLocalSearchParams(); const promotionObj = JSON.parse(promotion as string); const [loading, setLoading] = useState(false); return ( {loading ? ( ) : ( { if (router.canGoBack()) { router.back(); } else { router.replace('/notificationPage'); } }} hitSlop={{ top: 20, bottom: 20, left: 20, right: 20 }} > 詳情 充電完成 親愛的用戶,您的愛車已充滿電完成!請盡快駛離充電站,以便其他車輛使用。感謝您的配合! 最新更新日期:{formatToChineseDateTime(promotionObj.updatedAt)} )} ); }; export default ChargingDetailPage;