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.7KB

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