123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- // @flow
-
- import * as React from 'react';
- import {Card, Paragraph} from "react-native-paper";
- import {Image, StyleSheet} from "react-native";
- import i18n from 'i18n-js';
-
- const ICON_AMICALE = require('../../../../assets/amicale.png');
-
- export default class VoteTitle extends React.Component<{}> {
-
- shouldComponentUpdate() {
- return false;
- }
-
- render() {
- return (
- <Card style={styles.card}>
- <Card.Title
- title={i18n.t('screens.vote.main.title')}
- subtitle={i18n.t('screens.vote.main.subtitle')}
- left={(props) => <Image
- {...props}
- style={{
- width: props.size,
- height: props.size,
- }}
- source={ICON_AMICALE}
- />}
- />
- <Card.Content>
- <Paragraph>
- {i18n.t('screens.vote.main.paragraph1')}
- </Paragraph>
- <Paragraph>
- {i18n.t('screens.vote.main.paragraph2')}
- </Paragraph>
- </Card.Content>
- </Card>
- );
- }
- }
-
- const styles = StyleSheet.create({
- card: {
- margin: 10,
- },
- });
|