CooperationScreen.jsx 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. /* eslint-disable global-require */
  2. import * as WebBrowser from 'expo-web-browser';
  3. import * as React from 'react';
  4. import { Div, Button, Image, Text, Avatar } from 'react-native-magnus';
  5. import { ScrollView } from 'react-native-gesture-handler';
  6. import { useTranslation } from 'react-i18next';
  7. import { List } from 'react-native-paper';
  8. import Header from '../../components/Header';
  9. export default function CooperationScreen({ navigation }) {
  10. const { t } = useTranslation();
  11. return (
  12. <>
  13. <Header title={t('he-zuo-shen-qing')} />
  14. <ScrollView>
  15. <Div bg="white" mb={5}>
  16. <List.Item
  17. title={t('shang-jia-ru-zhu')}
  18. description={() => {
  19. return (
  20. <Div mt={10}>
  21. <Text fontSize="xs" color="gray300" textAlign="left">
  22. {t('tips5')}
  23. </Text>
  24. <Text fontSize="xs" color="gray300" textAlign="left">
  25. {t('tips6')}13455324344({t('lian-xi-fang-shi')})
  26. </Text>
  27. </Div>
  28. );
  29. }}
  30. left={() => (
  31. <Image
  32. w={19}
  33. h={17}
  34. alignSelf="center"
  35. mx={10}
  36. source={require('../../assets/images/cooperation3.png')}
  37. />
  38. )}
  39. right={(props) => <List.Icon {...props} icon="chevron-right" />}
  40. onPress={() => navigation.navigate('Apply', { type: '商家' })}
  41. />
  42. </Div>
  43. <Div bg="white" mb={5}>
  44. <List.Item
  45. title={t('qi-shou-zhao-mu')}
  46. description={() => {
  47. return (
  48. <Div mt={10}>
  49. <Text fontSize="xs" color="gray300" textAlign="left">
  50. {t('rider')}
  51. </Text>
  52. <Text fontSize="xs" color="gray300" textAlign="left">
  53. {t('rider2')}
  54. 13455324344({t('lian-xi-fang-shi')})
  55. </Text>
  56. </Div>
  57. );
  58. }}
  59. left={() => (
  60. <Image
  61. w={19}
  62. h={17}
  63. alignSelf="center"
  64. mx={10}
  65. source={require('../../assets/images/cooperation2.png')}
  66. />
  67. )}
  68. right={(props) => <List.Icon {...props} icon="chevron-right" />}
  69. onPress={() => navigation.navigate('Apply', { type: '骑手' })}
  70. />
  71. </Div>
  72. <Div bg="white" mb={5}>
  73. <List.Item
  74. title={t('shang-wu-he-zuo')}
  75. description={() => {
  76. return (
  77. <Div mt={10}>
  78. <Text fontSize="xs" color="gray300" textAlign="left">
  79. {t('shang-wu-he-zuo-qing-lian-xi')}13455324344(
  80. {t('lian-xi-fang-shi')})
  81. </Text>
  82. </Div>
  83. );
  84. }}
  85. left={() => (
  86. <Image
  87. w={19}
  88. h={17}
  89. alignSelf="center"
  90. mx={10}
  91. source={require('../../assets/images/cooperation1.png')}
  92. />
  93. )}
  94. right={(props) => <List.Icon {...props} icon="chevron-right" />}
  95. onPress={() => navigation.navigate('Apply', { type: '商务' })}
  96. />
  97. </Div>
  98. </ScrollView>
  99. </>
  100. );
  101. }