2019-08-08 18:05:18 +02:00
|
|
|
// @flow
|
|
|
|
|
|
|
|
import * as React from 'react';
|
|
|
|
import {Image, Linking, View} from 'react-native';
|
2019-08-09 10:54:05 +02:00
|
|
|
import {Body, Card, CardItem, Container, Content, H2, H3, Left, Tab, TabHeading, Tabs, Text} from 'native-base';
|
2019-09-28 12:01:19 +02:00
|
|
|
import CustomHeader from "../../components/CustomHeader";
|
2019-08-08 18:05:18 +02:00
|
|
|
import i18n from "i18n-js";
|
2019-09-28 12:01:19 +02:00
|
|
|
import CustomMaterialIcon from "../../components/CustomMaterialIcon";
|
|
|
|
import ThemeManager from "../../utils/ThemeManager";
|
2019-08-08 18:05:18 +02:00
|
|
|
|
|
|
|
type Props = {
|
|
|
|
navigation: Object,
|
|
|
|
};
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Opens a link in the device's browser
|
|
|
|
* @param link The link to open
|
|
|
|
*/
|
|
|
|
function openWebLink(link) {
|
|
|
|
Linking.openURL(link).catch((err) => console.error('Error opening link', err));
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Class defining an about screen. This screen shows the user information about the app and it's author.
|
|
|
|
*/
|
|
|
|
export default class ProxiwashAboutScreen extends React.Component<Props> {
|
|
|
|
|
|
|
|
render() {
|
|
|
|
const nav = this.props.navigation;
|
|
|
|
return (
|
|
|
|
<Container>
|
2019-09-17 10:37:52 +02:00
|
|
|
<CustomHeader
|
|
|
|
navigation={nav} title={i18n.t('screens.proxiwash')}
|
|
|
|
hasBackButton={true}
|
|
|
|
hasTabs={true}/>
|
|
|
|
<Tabs
|
|
|
|
tabContainerStyle={{
|
|
|
|
elevation: 0, // Fix for android shadow
|
|
|
|
}}>
|
2019-08-08 18:05:18 +02:00
|
|
|
<Tab
|
|
|
|
heading={
|
|
|
|
<TabHeading>
|
|
|
|
<CustomMaterialIcon
|
|
|
|
icon={'information'}
|
2019-09-16 19:13:01 +02:00
|
|
|
color={ThemeManager.getCurrentThemeVariables().tabIconColor}
|
2019-08-08 18:05:18 +02:00
|
|
|
fontSize={20}
|
|
|
|
/>
|
2019-08-09 10:54:05 +02:00
|
|
|
<Text>{i18n.t('proxiwashScreen.informationTab')}</Text>
|
2019-08-08 18:05:18 +02:00
|
|
|
</TabHeading>
|
|
|
|
}
|
|
|
|
key={1}
|
|
|
|
style={{backgroundColor: ThemeManager.getCurrentThemeVariables().containerBgColor}}>
|
|
|
|
<Content padder>
|
2019-08-09 10:54:05 +02:00
|
|
|
<View style={{
|
|
|
|
width: '100%',
|
|
|
|
height: 100,
|
|
|
|
marginTop: 20,
|
|
|
|
marginBottom: 20,
|
|
|
|
justifyContent: 'center',
|
|
|
|
alignItems: 'center'
|
|
|
|
}}>
|
|
|
|
<Image
|
2019-09-28 12:01:19 +02:00
|
|
|
source={require('../../assets/proxiwash-logo.png')}
|
2019-08-09 10:54:05 +02:00
|
|
|
style={{flex: 1, resizeMode: "contain"}}
|
|
|
|
resizeMode="contain"/>
|
|
|
|
</View>
|
2019-08-27 16:28:43 +02:00
|
|
|
<Text>{i18n.t('proxiwashScreen.description')}</Text>
|
2019-08-08 18:05:18 +02:00
|
|
|
<Card>
|
|
|
|
<CardItem>
|
|
|
|
<Left>
|
2019-08-08 18:25:13 +02:00
|
|
|
<CustomMaterialIcon icon={'tumble-dryer'}/>
|
2019-08-09 10:54:05 +02:00
|
|
|
<H2>{i18n.t('proxiwashScreen.dryer')}</H2>
|
2019-08-08 18:05:18 +02:00
|
|
|
</Left>
|
|
|
|
</CardItem>
|
|
|
|
<CardItem>
|
2019-08-09 10:54:05 +02:00
|
|
|
<Body>
|
|
|
|
<H3>{i18n.t('proxiwashScreen.procedure')}</H3>
|
|
|
|
<Text>{i18n.t('proxiwashScreen.dryerProcedure')}</Text>
|
|
|
|
</Body>
|
|
|
|
</CardItem>
|
|
|
|
<CardItem>
|
|
|
|
<Body>
|
|
|
|
<H3>{i18n.t('proxiwashScreen.tips')}</H3>
|
|
|
|
<Text>{i18n.t('proxiwashScreen.dryerTips')}</Text>
|
|
|
|
</Body>
|
2019-08-08 18:05:18 +02:00
|
|
|
</CardItem>
|
|
|
|
</Card>
|
|
|
|
<Card>
|
|
|
|
<CardItem>
|
|
|
|
<Left>
|
2019-08-08 18:25:13 +02:00
|
|
|
<CustomMaterialIcon icon={'washing-machine'}/>
|
2019-08-09 10:54:05 +02:00
|
|
|
<H2>{i18n.t('proxiwashScreen.washer')}</H2>
|
2019-08-08 18:05:18 +02:00
|
|
|
</Left>
|
|
|
|
</CardItem>
|
|
|
|
<CardItem>
|
2019-08-09 10:54:05 +02:00
|
|
|
<Body>
|
|
|
|
<H3>{i18n.t('proxiwashScreen.procedure')}</H3>
|
|
|
|
<Text>{i18n.t('proxiwashScreen.washerProcedure')}</Text>
|
|
|
|
</Body>
|
|
|
|
</CardItem>
|
|
|
|
<CardItem>
|
|
|
|
<Body>
|
|
|
|
<H3>{i18n.t('proxiwashScreen.tips')}</H3>
|
|
|
|
<Text>{i18n.t('proxiwashScreen.washerTips')}</Text>
|
|
|
|
</Body>
|
2019-08-08 18:05:18 +02:00
|
|
|
</CardItem>
|
|
|
|
</Card>
|
|
|
|
</Content>
|
|
|
|
</Tab>
|
|
|
|
<Tab
|
|
|
|
heading={
|
|
|
|
<TabHeading>
|
|
|
|
<CustomMaterialIcon
|
|
|
|
icon={'cash'}
|
2019-09-16 19:13:01 +02:00
|
|
|
color={ThemeManager.getCurrentThemeVariables().tabIconColor}
|
2019-08-08 18:05:18 +02:00
|
|
|
fontSize={20}
|
|
|
|
/>
|
2019-08-09 10:54:05 +02:00
|
|
|
<Text>{i18n.t('proxiwashScreen.paymentTab')}</Text>
|
2019-08-08 18:05:18 +02:00
|
|
|
</TabHeading>
|
|
|
|
}
|
|
|
|
key={2}
|
|
|
|
style={{backgroundColor: ThemeManager.getCurrentThemeVariables().containerBgColor}}>
|
|
|
|
<Content padder>
|
|
|
|
<Card>
|
|
|
|
<CardItem>
|
|
|
|
<Left>
|
2019-08-08 18:25:13 +02:00
|
|
|
<CustomMaterialIcon icon={'coins'}/>
|
2019-08-09 10:54:05 +02:00
|
|
|
<H2>{i18n.t('proxiwashScreen.tariffs')}</H2>
|
2019-08-08 18:05:18 +02:00
|
|
|
</Left>
|
|
|
|
</CardItem>
|
|
|
|
<CardItem>
|
2019-08-09 10:54:05 +02:00
|
|
|
<Body>
|
|
|
|
<Text>{i18n.t('proxiwashScreen.washersTariff')}</Text>
|
|
|
|
<Text>{i18n.t('proxiwashScreen.dryersTariff')}</Text>
|
|
|
|
</Body>
|
2019-08-08 18:05:18 +02:00
|
|
|
</CardItem>
|
|
|
|
</Card>
|
|
|
|
<Card>
|
|
|
|
<CardItem>
|
|
|
|
<Left>
|
2019-08-08 18:25:13 +02:00
|
|
|
<CustomMaterialIcon icon={'cash'}/>
|
2019-08-09 10:54:05 +02:00
|
|
|
<H2>{i18n.t('proxiwashScreen.paymentMethods')}</H2>
|
2019-08-08 18:05:18 +02:00
|
|
|
</Left>
|
|
|
|
</CardItem>
|
|
|
|
<CardItem>
|
2019-08-09 10:54:05 +02:00
|
|
|
<Body>
|
|
|
|
<Text>{i18n.t('proxiwashScreen.paymentMethodsDescription')}</Text>
|
|
|
|
</Body>
|
2019-08-08 18:05:18 +02:00
|
|
|
</CardItem>
|
|
|
|
</Card>
|
|
|
|
</Content>
|
|
|
|
</Tab>
|
|
|
|
</Tabs>
|
|
|
|
</Container>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|