// @flow import * as React from 'react'; import {Image, View} from 'react-native'; import i18n from 'i18n-js'; import {Card, Avatar, Paragraph, Title} from 'react-native-paper'; import CollapsibleScrollView from '../../components/Collapsible/CollapsibleScrollView'; import type {CardTitleIconPropsType} from '../../constants/PaperStyles'; const LOGO = 'https://etud.insa-toulouse.fr/~amicale_app/images/Proxiwash.png'; export type LaverieType = { id: string, title: string, subtitle: string, description: string, tarif: string, paymentMethods: string, icon: string, url: string, }; export const PROXIWASH_DATA = { washinsa: { id: 'washinsa', title: 'screens.proxiwash.washinsa.title', subtitle: 'screens.proxiwash.washinsa.subtitle', description: 'screens.proxiwash.washinsa.description', tarif: 'screens.proxiwash.washinsa.tariff', paymentMethods: 'screens.proxiwash.washinsa.paymentMethods', icon: 'school-outline', url: 'https://etud.insa-toulouse.fr/~amicale_app/v2/washinsa/washinsa_data.json', }, tripodeB: { id: 'tripodeB', title: 'screens.proxiwash.tripodeB.title', subtitle: 'screens.proxiwash.tripodeB.subtitle', description: 'screens.proxiwash.tripodeB.description', tarif: 'screens.proxiwash.tripodeB.tariff', paymentMethods: 'screens.proxiwash.tripodeB.paymentMethods', icon: 'domain', url: 'https://etud.insa-toulouse.fr/~amicale_app/v2/washinsa/tripode_b_data.json', }, }; /** * Class defining the proxiwash about screen. */ export default class ProxiwashAboutScreen extends React.Component { static getCardItem(item: LaverieType): React.Node { return ( ( )} /> {i18n.t(item.description)} {i18n.t('screens.proxiwash.tariffs')} {i18n.t(item.tarif)} {i18n.t('screens.proxiwash.paymentMethods')} {i18n.t(item.paymentMethods)} ); } render(): React.Node { return ( {ProxiwashAboutScreen.getCardItem(PROXIWASH_DATA.washinsa)} {ProxiwashAboutScreen.getCardItem(PROXIWASH_DATA.tripodeB)} ( )} /> {i18n.t('screens.proxiwash.procedure')} {i18n.t('screens.proxiwash.dryerProcedure')} {i18n.t('screens.proxiwash.tips')} {i18n.t('screens.proxiwash.dryerTips')} ( )} /> {i18n.t('screens.proxiwash.procedure')} {i18n.t('screens.proxiwash.washerProcedure')} {i18n.t('screens.proxiwash.tips')} {i18n.t('screens.proxiwash.washerTips')} ); } }