uberUploadPageComponent.tsx 3.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. import { View, Text, Pressable, Image, ScrollView } from 'react-native';
  2. import { SafeAreaView } from 'react-native-safe-area-context';
  3. import { router } from 'expo-router';
  4. import { PreviousPageBlackSvg } from '../global/SVG';
  5. import NormalButton from '../global/normal_button';
  6. const UberUploadPageComponent = () => {
  7. return (
  8. <SafeAreaView
  9. className="flex-1 bg-white"
  10. edges={['top', 'right', 'left']}
  11. >
  12. <ScrollView
  13. style={{ flex: 1 }}
  14. className="mx-[5%]"
  15. showsVerticalScrollIndicator={false}
  16. >
  17. <View style={{ marginTop: 25 }}>
  18. <Pressable
  19. onPress={() => {
  20. if (router.canGoBack()) {
  21. router.back();
  22. } else {
  23. router.replace('/accountMainPage');
  24. }
  25. }}
  26. >
  27. <PreviousPageBlackSvg />
  28. </Pressable>
  29. <Text style={{ fontSize: 45, marginVertical: 25 }}>
  30. 上傳證明
  31. </Text>
  32. <View className="space-y-2">
  33. <Text style={{ fontSize: 22 }}>
  34. 請上傳Uber司機的證明圖片
  35. </Text>
  36. <Text style={{ fontSize: 18 }}>• 司機名稱</Text>
  37. <Text style={{ fontSize: 18 }}>• 車牌</Text>
  38. <Text style={{ fontSize: 18 }}>• 車輛品牌及型號</Text>
  39. </View>
  40. <View className="mt-5 ">
  41. <Text style={{ fontSize: 22, marginBottom: 9 }}>
  42. 上傳範例
  43. </Text>
  44. <View className="flex-row w-full justify-between">
  45. <Image
  46. source={require('../../assets/uberUploadSample1.png')}
  47. resizeMode="contain"
  48. className="flex-1 h-auto"
  49. style={{ aspectRatio: 1 }}
  50. />
  51. <Image
  52. source={require('../../assets/uberUploadSample2.png')}
  53. resizeMode="contain"
  54. className="flex-1 h-auto"
  55. style={{ aspectRatio: 1 }}
  56. />
  57. </View>
  58. <Pressable onPress={() => console.log('a')}>
  59. <View
  60. style={{ borderWidth: 1 }}
  61. className="border-[#EEEEEE] rounded-2xl items-center justify-center p-4 "
  62. >
  63. <Text
  64. style={{ fontSize: 48 }}
  65. className="text-[#02677d] text-center"
  66. >
  67. +
  68. </Text>
  69. <Text className="text-xl text-[#02677d] mb-6 text-center ">
  70. 上傳圖片
  71. </Text>
  72. </View>
  73. </Pressable>
  74. <NormalButton
  75. title={
  76. <Text className="text-xl text-white">提交</Text>
  77. }
  78. onPress={() =>
  79. router.push('uberUploadCompletePage')
  80. }
  81. />
  82. </View>
  83. </View>
  84. </ScrollView>
  85. </SafeAreaView>
  86. );
  87. };
  88. export default UberUploadPageComponent;