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