activityRecordPageComponent.tsx 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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, marginVertical: 25 }}>充電記錄</Text>
  27. </View>
  28. <View className="flex-1 ">
  29. <BookingTabViewComponent titles={['已預約', '已完成']} />
  30. </View>
  31. </View>
  32. </SafeAreaView>
  33. );
  34. };
  35. export default ActivityRecordPageComponent;