| 123456789101112131415161718192021222324252627282930313233343536373839 |
- import { View, Text, Pressable, Dimensions } from 'react-native';
- import { SafeAreaView } from 'react-native-safe-area-context';
- import { router } from 'expo-router';
- import { CrossLogoSvg } from '../global/SVG';
- import CouponTabViewComponent from '../global/couponTabView';
- import { useEffect, useState } from 'react';
- import { walletService } from '../../service/walletService';
- import BookingTabViewComponent from '../global/bookingTabViewComponent';
- const ActivityRecordPageComponent = () => {
- const screenHeight = Dimensions.get('window').height;
- return (
- <SafeAreaView className="flex-1 bg-white" edges={['top']}>
- <View style={{ minHeight: screenHeight, flex: 1 }}>
- <View className="mx-[5%]" style={{ marginTop: 25}}>
- <Pressable
- onPress={() => {
- if (router.canGoBack()) {
- router.back();
- } else {
- router.replace('/accountMainPage');
- }
- }}
- >
- <CrossLogoSvg />
- </Pressable>
- <Text style={{ fontSize: 45, marginTop: 25, marginBottom: 10 }}>充電記錄</Text>
- </View>
- <View className="flex-1">
- <BookingTabViewComponent titles={['已預約', '已完成']} />
- </View>
- <View style={{ width: "100%",height: 130 }} />
- </View>
- </SafeAreaView>
- );
- };
- export default ActivityRecordPageComponent;
|