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.

ClubAboutScreen.js 1.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. // @flow
  2. import * as React from 'react';
  3. import {Image, ScrollView, View} from 'react-native';
  4. import {Card, List, Text, withTheme} from 'react-native-paper';
  5. import i18n from 'i18n-js';
  6. import Autolink from "react-native-autolink";
  7. type Props = {};
  8. const CONTACT_LINK = 'clubs@amicale-insat.fr';
  9. class ClubAboutScreen extends React.Component<Props> {
  10. render() {
  11. return (
  12. <ScrollView style={{padding: 5}}>
  13. <View style={{
  14. width: '100%',
  15. height: 100,
  16. marginTop: 20,
  17. marginBottom: 20,
  18. justifyContent: 'center',
  19. alignItems: 'center'
  20. }}>
  21. <Image
  22. source={require('../../../../assets/amicale.png')}
  23. style={{flex: 1, resizeMode: "contain"}}
  24. resizeMode="contain"/>
  25. </View>
  26. <Text>{i18n.t("screens.clubs.about.text")}</Text>
  27. <Card style={{margin: 5}}>
  28. <Card.Title
  29. title={i18n.t("screens.clubs.about.title")}
  30. subtitle={i18n.t("screens.clubs.about.subtitle")}
  31. left={props => <List.Icon {...props} icon={'information'}/>}
  32. />
  33. <Card.Content>
  34. <Text>{i18n.t("screens.clubs.about.message")}</Text>
  35. <Autolink
  36. text={CONTACT_LINK}
  37. component={Text}
  38. />
  39. </Card.Content>
  40. </Card>
  41. </ScrollView>
  42. );
  43. }
  44. }
  45. export default withTheme(ClubAboutScreen);