activityRecordPageComponent.tsx 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. import { View, Text, Pressable, Dimensions } from 'react-native';
  2. import { SafeAreaView } from 'react-native-safe-area-context';
  3. import { router } from 'expo-router';
  4. import { CrossLogoSvg } from '../global/SVG';
  5. import CouponTabViewComponent from '../global/couponTabView';
  6. import { useEffect, useState } from 'react';
  7. import { walletService } from '../../service/walletService';
  8. import BookingTabViewComponent from '../global/bookingTabViewComponent';
  9. const ActivityRecordPageComponent = () => {
  10. const screenHeight = Dimensions.get('window').height;
  11. return (
  12. <SafeAreaView className="flex-1 bg-white" edges={['top']}>
  13. <View style={{ minHeight: screenHeight, flex: 1 }}>
  14. <View className="mx-[5%]" style={{ marginTop: 25}}>
  15. <Pressable
  16. onPress={() => {
  17. if (router.canGoBack()) {
  18. router.back();
  19. } else {
  20. router.replace('/accountMainPage');
  21. }
  22. }}
  23. >
  24. <CrossLogoSvg />
  25. </Pressable>
  26. <Text style={{ fontSize: 45, marginTop: 25, marginBottom: 10 }}>充電記錄</Text>
  27. </View>
  28. <View className="flex-1">
  29. <BookingTabViewComponent titles={['已預約', '已完成']} />
  30. </View>
  31. <View style={{ width: "100%",height: 130 }} />
  32. </View>
  33. </SafeAreaView>
  34. );
  35. };
  36. export default ActivityRecordPageComponent;