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.

VoteTitle.js 1.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. // @flow
  2. import * as React from 'react';
  3. import {Avatar, Card, Paragraph} from "react-native-paper";
  4. import {StyleSheet} from "react-native";
  5. import i18n from 'i18n-js';
  6. const ICON_AMICALE = require('../../../../assets/amicale.png');
  7. export default class VoteTitle extends React.Component<{}> {
  8. shouldComponentUpdate() {
  9. return false;
  10. }
  11. render() {
  12. return (
  13. <Card style={styles.card}>
  14. <Card.Title
  15. title={i18n.t('screens.vote.main.title')}
  16. subtitle={i18n.t('screens.vote.main.subtitle')}
  17. left={(props) => <Avatar.Image
  18. {...props}
  19. source={ICON_AMICALE}
  20. style={styles.icon}
  21. />}
  22. />
  23. <Card.Content>
  24. <Paragraph>
  25. {i18n.t('screens.vote.main.paragraph1')}
  26. </Paragraph>
  27. <Paragraph>
  28. {i18n.t('screens.vote.main.paragraph2')}
  29. </Paragraph>
  30. </Card.Content>
  31. </Card>
  32. );
  33. }
  34. }
  35. const styles = StyleSheet.create({
  36. card: {
  37. margin: 10,
  38. },
  39. icon: {
  40. backgroundColor: 'transparent'
  41. },
  42. });