Application Android et IOS pour l'amicale des élèves
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ProximoAboutScreen.js 2.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. // @flow
  2. import * as React from 'react';
  3. import {Image, ScrollView, View} from 'react-native';
  4. import i18n from "i18n-js";
  5. import {Card, List, Paragraph, Text} from 'react-native-paper';
  6. import CustomTabBar from "../../../components/Tabbar/CustomTabBar";
  7. type Props = {
  8. navigation: Object,
  9. };
  10. const LOGO = "https://etud.insa-toulouse.fr/~amicale_app/images/proximo-logo.png";
  11. /**
  12. * Class defining the proximo about screen.
  13. */
  14. export default class ProximoAboutScreen extends React.Component<Props> {
  15. render() {
  16. return (
  17. <ScrollView style={{padding: 5}}>
  18. <View style={{
  19. width: '100%',
  20. height: 100,
  21. marginTop: 20,
  22. marginBottom: 20,
  23. justifyContent: 'center',
  24. alignItems: 'center'
  25. }}>
  26. <Image
  27. source={{uri: LOGO}}
  28. style={{height: '100%', width: '100%', resizeMode: "contain"}}/>
  29. </View>
  30. <Text>{i18n.t('proximoScreen.description')}</Text>
  31. <Card style={{margin: 5}}>
  32. <Card.Title
  33. title={i18n.t('proximoScreen.openingHours')}
  34. left={props => <List.Icon {...props} icon={'clock-outline'}/>}
  35. />
  36. <Card.Content>
  37. <Paragraph>18h30 - 19h30</Paragraph>
  38. </Card.Content>
  39. </Card>
  40. <Card style={{margin: 5, marginBottom: CustomTabBar.TAB_BAR_HEIGHT + 20}}>
  41. <Card.Title
  42. title={i18n.t('proximoScreen.paymentMethods')}
  43. left={props => <List.Icon {...props} icon={'cash'}/>}
  44. />
  45. <Card.Content>
  46. <Paragraph>{i18n.t('proximoScreen.paymentMethodsDescription')}</Paragraph>
  47. </Card.Content>
  48. </Card>
  49. </ScrollView>
  50. );
  51. }
  52. }