assistancePageComponent.tsx 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. // component/accountPages/assistancePageComponent.tsx
  2. import { View, Text, ScrollView, Pressable, Linking, Alert } from 'react-native';
  3. import React from 'react';
  4. import { SafeAreaView } from 'react-native-safe-area-context';
  5. import { router } from 'expo-router';
  6. import { CrossLogoSvg } from '../global/SVG';
  7. import { handleGoWhatsApp } from '../../util/index';
  8. import { useTranslation } from '../../util/hooks/useTranslation';
  9. const AssistancePageComponent = () => {
  10. const { t } = useTranslation();
  11. return (
  12. <SafeAreaView className="flex-1 bg-white" edges={['top', 'right', 'left']}>
  13. <ScrollView className="flex-1 mx-[5%]" showsVerticalScrollIndicator={false}>
  14. <View style={{ marginTop: 25 }}>
  15. <Pressable
  16. onPress={() => {
  17. router.replace('/accountMainPage');
  18. }}
  19. >
  20. <CrossLogoSvg />
  21. </Pressable>
  22. <Text style={{ fontSize: 45, marginVertical: 25 }}>{t('assistance.troubleshooting')}</Text>
  23. </View>
  24. <View>
  25. <Text className="text-lg">
  26. {t('assistance.description')}
  27. </Text>
  28. <Pressable onPress={handleGoWhatsApp}>
  29. <Text className="text-3xl font-semibold underline text-[#02677D] pt-2">+852 9138 2139</Text>
  30. </Pressable>
  31. </View>
  32. </ScrollView>
  33. </SafeAreaView>
  34. );
  35. };
  36. export default AssistancePageComponent;