activityRecordPageComponent.tsx 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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. import { useTranslation } from '../../util/hooks/useTranslation';
  10. const ActivityRecordPageComponent = () => {
  11. const screenHeight = Dimensions.get('window').height;
  12. const { t } = useTranslation();
  13. return (
  14. <SafeAreaView className="flex-1 bg-white" edges={['top']}>
  15. <View style={{ minHeight: screenHeight, flex: 1 }}>
  16. <View className="mx-[5%]" style={{ marginTop: 25}}>
  17. <Pressable
  18. onPress={() => {
  19. if (router.canGoBack()) {
  20. router.back();
  21. } else {
  22. router.replace('/accountMainPage');
  23. }
  24. }}
  25. >
  26. <CrossLogoSvg />
  27. </Pressable>
  28. <Text style={{ fontSize: 45, marginTop: 25, marginBottom: 10 }}>{t('chargingHistory.charging_records')}</Text>
  29. </View>
  30. <View className="flex-1">
  31. <BookingTabViewComponent />
  32. </View>
  33. <View style={{ width: "100%",height: 150 }} />
  34. </View>
  35. </SafeAreaView>
  36. );
  37. };
  38. export default ActivityRecordPageComponent;