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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. /*
  2. * Copyright (c) 2019 - 2020 Arnaud Vergnet.
  3. *
  4. * This file is part of Campus INSAT.
  5. *
  6. * Campus INSAT is free software: you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License as published by
  8. * the Free Software Foundation, either version 3 of the License, or
  9. * (at your option) any later version.
  10. *
  11. * Campus INSAT is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. * GNU General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU General Public License
  17. * along with Campus INSAT. If not, see <https://www.gnu.org/licenses/>.
  18. */
  19. // @flow
  20. import * as React from 'react';
  21. import {Image, View} from 'react-native';
  22. import {Card, Avatar, Text, withTheme} from 'react-native-paper';
  23. import i18n from 'i18n-js';
  24. import Autolink from 'react-native-autolink';
  25. import CollapsibleScrollView from '../../../components/Collapsible/CollapsibleScrollView';
  26. import AMICALE_ICON from '../../../../assets/amicale.png';
  27. import type {CardTitleIconPropsType} from '../../../constants/PaperStyles';
  28. const CONTACT_LINK = 'clubs@amicale-insat.fr';
  29. // eslint-disable-next-line react/prefer-stateless-function
  30. class ClubAboutScreen extends React.Component<null> {
  31. render(): React.Node {
  32. return (
  33. <CollapsibleScrollView style={{padding: 5}}>
  34. <View
  35. style={{
  36. width: '100%',
  37. height: 100,
  38. marginTop: 20,
  39. marginBottom: 20,
  40. justifyContent: 'center',
  41. alignItems: 'center',
  42. }}>
  43. <Image
  44. source={AMICALE_ICON}
  45. style={{flex: 1, resizeMode: 'contain'}}
  46. resizeMode="contain"
  47. />
  48. </View>
  49. <Text>{i18n.t('screens.clubs.about.text')}</Text>
  50. <Card style={{margin: 5}}>
  51. <Card.Title
  52. title={i18n.t('screens.clubs.about.title')}
  53. subtitle={i18n.t('screens.clubs.about.subtitle')}
  54. left={(iconProps: CardTitleIconPropsType): React.Node => (
  55. <Avatar.Icon size={iconProps.size} icon="information" />
  56. )}
  57. />
  58. <Card.Content>
  59. <Text>{i18n.t('screens.clubs.about.message')}</Text>
  60. <Autolink text={CONTACT_LINK} component={Text} />
  61. </Card.Content>
  62. </Card>
  63. </CollapsibleScrollView>
  64. );
  65. }
  66. }
  67. export default withTheme(ClubAboutScreen);