Application Android et IOS pour l'amicale des élèves https://play.google.com/store/apps/details?id=fr.amicaleinsat.application
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.6KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. // @flow
  2. import * as React from 'react';
  3. import {Image, 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. import CollapsibleScrollView from '../../../components/Collapsible/CollapsibleScrollView';
  8. import AMICALE_ICON from '../../../../assets/amicale.png';
  9. const CONTACT_LINK = 'clubs@amicale-insat.fr';
  10. // eslint-disable-next-line react/prefer-stateless-function
  11. class ClubAboutScreen extends React.Component<null> {
  12. render(): React.Node {
  13. return (
  14. <CollapsibleScrollView style={{padding: 5}}>
  15. <View
  16. style={{
  17. width: '100%',
  18. height: 100,
  19. marginTop: 20,
  20. marginBottom: 20,
  21. justifyContent: 'center',
  22. alignItems: 'center',
  23. }}>
  24. <Image
  25. source={AMICALE_ICON}
  26. style={{flex: 1, resizeMode: 'contain'}}
  27. resizeMode="contain"
  28. />
  29. </View>
  30. <Text>{i18n.t('screens.clubs.about.text')}</Text>
  31. <Card style={{margin: 5}}>
  32. <Card.Title
  33. title={i18n.t('screens.clubs.about.title')}
  34. subtitle={i18n.t('screens.clubs.about.subtitle')}
  35. left={({size}: {size: number}): React.Node => (
  36. <List.Icon size={size} icon="information" />
  37. )}
  38. />
  39. <Card.Content>
  40. <Text>{i18n.t('screens.clubs.about.message')}</Text>
  41. <Autolink text={CONTACT_LINK} component={Text} />
  42. </Card.Content>
  43. </Card>
  44. </CollapsibleScrollView>
  45. );
  46. }
  47. }
  48. export default withTheme(ClubAboutScreen);