uberUploadPageComponent.tsx 4.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  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. <View className="mt-4">
  75. <NormalButton
  76. title={
  77. <Text className="text-xl text-white">
  78. 提交
  79. </Text>
  80. }
  81. onPress={() =>
  82. router.push('uberUploadCompletePage')
  83. }
  84. />
  85. </View>
  86. </View>
  87. </View>
  88. </ScrollView>
  89. </SafeAreaView>
  90. );
  91. };
  92. export default UberUploadPageComponent;