Application Android et IOS pour l'amicale des élèves
Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

ProxiwashAboutScreen.js 7.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  1. // @flow
  2. import * as React from 'react';
  3. import {Image, Linking, View} from 'react-native';
  4. import {Body, Card, CardItem, Container, Content, H2, H3, Left, Tab, TabHeading, Tabs, Text} from 'native-base';
  5. import CustomHeader from "../components/CustomHeader";
  6. import i18n from "i18n-js";
  7. import CustomMaterialIcon from "../components/CustomMaterialIcon";
  8. import ThemeManager from "../utils/ThemeManager";
  9. type Props = {
  10. navigation: Object,
  11. };
  12. /**
  13. * Opens a link in the device's browser
  14. * @param link The link to open
  15. */
  16. function openWebLink(link) {
  17. Linking.openURL(link).catch((err) => console.error('Error opening link', err));
  18. }
  19. /**
  20. * Class defining an about screen. This screen shows the user information about the app and it's author.
  21. */
  22. export default class ProxiwashAboutScreen extends React.Component<Props> {
  23. render() {
  24. const nav = this.props.navigation;
  25. return (
  26. <Container>
  27. <CustomHeader navigation={nav} title={i18n.t('screens.proxiwash')} hasBackButton={true}/>
  28. <Tabs>
  29. <Tab
  30. heading={
  31. <TabHeading>
  32. <CustomMaterialIcon
  33. icon={'information'}
  34. color={ThemeManager.getCurrentThemeVariables().tabIconColor}
  35. fontSize={20}
  36. />
  37. <Text>{i18n.t('proxiwashScreen.informationTab')}</Text>
  38. </TabHeading>
  39. }
  40. key={1}
  41. style={{backgroundColor: ThemeManager.getCurrentThemeVariables().containerBgColor}}>
  42. <Content padder>
  43. <View style={{
  44. width: '100%',
  45. height: 100,
  46. marginTop: 20,
  47. marginBottom: 20,
  48. justifyContent: 'center',
  49. alignItems: 'center'
  50. }}>
  51. <Image
  52. source={require('../assets/proxiwash-logo.png')}
  53. style={{flex: 1, resizeMode: "contain"}}
  54. resizeMode="contain"/>
  55. </View>
  56. <Text>{i18n.t('proxiwashScreen.description')}</Text>
  57. <Card>
  58. <CardItem>
  59. <Left>
  60. <CustomMaterialIcon icon={'tumble-dryer'}/>
  61. <H2>{i18n.t('proxiwashScreen.dryer')}</H2>
  62. </Left>
  63. </CardItem>
  64. <CardItem>
  65. <Body>
  66. <H3>{i18n.t('proxiwashScreen.procedure')}</H3>
  67. <Text>{i18n.t('proxiwashScreen.dryerProcedure')}</Text>
  68. </Body>
  69. </CardItem>
  70. <CardItem>
  71. <Body>
  72. <H3>{i18n.t('proxiwashScreen.tips')}</H3>
  73. <Text>{i18n.t('proxiwashScreen.dryerTips')}</Text>
  74. </Body>
  75. </CardItem>
  76. </Card>
  77. <Card>
  78. <CardItem>
  79. <Left>
  80. <CustomMaterialIcon icon={'washing-machine'}/>
  81. <H2>{i18n.t('proxiwashScreen.washer')}</H2>
  82. </Left>
  83. </CardItem>
  84. <CardItem>
  85. <Body>
  86. <H3>{i18n.t('proxiwashScreen.procedure')}</H3>
  87. <Text>{i18n.t('proxiwashScreen.washerProcedure')}</Text>
  88. </Body>
  89. </CardItem>
  90. <CardItem>
  91. <Body>
  92. <H3>{i18n.t('proxiwashScreen.tips')}</H3>
  93. <Text>{i18n.t('proxiwashScreen.washerTips')}</Text>
  94. </Body>
  95. </CardItem>
  96. </Card>
  97. </Content>
  98. </Tab>
  99. <Tab
  100. heading={
  101. <TabHeading>
  102. <CustomMaterialIcon
  103. icon={'cash'}
  104. color={ThemeManager.getCurrentThemeVariables().tabIconColor}
  105. fontSize={20}
  106. />
  107. <Text>{i18n.t('proxiwashScreen.paymentTab')}</Text>
  108. </TabHeading>
  109. }
  110. key={2}
  111. style={{backgroundColor: ThemeManager.getCurrentThemeVariables().containerBgColor}}>
  112. <Content padder>
  113. <Card>
  114. <CardItem>
  115. <Left>
  116. <CustomMaterialIcon icon={'coins'}/>
  117. <H2>{i18n.t('proxiwashScreen.tariffs')}</H2>
  118. </Left>
  119. </CardItem>
  120. <CardItem>
  121. <Body>
  122. <Text>{i18n.t('proxiwashScreen.washersTariff')}</Text>
  123. <Text>{i18n.t('proxiwashScreen.dryersTariff')}</Text>
  124. </Body>
  125. </CardItem>
  126. </Card>
  127. <Card>
  128. <CardItem>
  129. <Left>
  130. <CustomMaterialIcon icon={'cash'}/>
  131. <H2>{i18n.t('proxiwashScreen.paymentMethods')}</H2>
  132. </Left>
  133. </CardItem>
  134. <CardItem>
  135. <Body>
  136. <Text>{i18n.t('proxiwashScreen.paymentMethodsDescription')}</Text>
  137. </Body>
  138. </CardItem>
  139. </Card>
  140. </Content>
  141. </Tab>
  142. </Tabs>
  143. </Container>
  144. );
  145. }
  146. }