2019-08-08 18:25:13 +02:00
|
|
|
// @flow
|
|
|
|
|
|
|
|
import * as React from 'react';
|
|
|
|
import {Image, Linking, View} from 'react-native';
|
|
|
|
import {Body, Card, CardItem, Container, Content, H2, Left, Text} from 'native-base';
|
|
|
|
import CustomHeader from "../../components/CustomHeader";
|
|
|
|
import i18n from "i18n-js";
|
|
|
|
import CustomMaterialIcon from "../../components/CustomMaterialIcon";
|
|
|
|
|
|
|
|
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 ProximoAboutScreen extends React.Component<Props> {
|
|
|
|
|
|
|
|
render() {
|
|
|
|
const nav = this.props.navigation;
|
|
|
|
return (
|
|
|
|
<Container>
|
|
|
|
<CustomHeader navigation={nav} title={i18n.t('screens.proximo')} hasBackButton={true}/>
|
|
|
|
<Content padder>
|
|
|
|
<View style={{
|
|
|
|
width: '100%',
|
|
|
|
height: 100,
|
|
|
|
marginTop: 20,
|
|
|
|
marginBottom: 20,
|
|
|
|
justifyContent: 'center',
|
|
|
|
alignItems: 'center'
|
|
|
|
}}>
|
|
|
|
<Image
|
|
|
|
source={require('../../assets/proximo-logo.png')}
|
|
|
|
style={{flex: 1, resizeMode: "contain"}}
|
|
|
|
resizeMode="contain"/>
|
|
|
|
</View>
|
2019-08-09 10:54:05 +02:00
|
|
|
<Text>{i18n.t('proximoScreen.description')}</Text>
|
2019-08-08 18:25:13 +02:00
|
|
|
<Card>
|
|
|
|
<CardItem>
|
|
|
|
<Left>
|
|
|
|
<CustomMaterialIcon icon={'clock-outline'}/>
|
2019-08-09 10:54:05 +02:00
|
|
|
<H2>{i18n.t('proximoScreen.openingHours')}</H2>
|
2019-08-08 18:25:13 +02:00
|
|
|
</Left>
|
|
|
|
</CardItem>
|
|
|
|
<CardItem>
|
|
|
|
<Text>18h30 - 19h30</Text>
|
|
|
|
</CardItem>
|
|
|
|
</Card>
|
|
|
|
<Card>
|
|
|
|
<CardItem>
|
|
|
|
<Left>
|
|
|
|
<CustomMaterialIcon icon={'cash'}/>
|
2019-08-09 10:54:05 +02:00
|
|
|
<H2>{i18n.t('proximoScreen.paymentMethods')}</H2>
|
2019-08-08 18:25:13 +02:00
|
|
|
</Left>
|
|
|
|
</CardItem>
|
|
|
|
<CardItem>
|
2019-08-09 10:54:05 +02:00
|
|
|
<Text>{i18n.t('proximoScreen.paymentMethodsDescription')}</Text>
|
2019-08-08 18:25:13 +02:00
|
|
|
</CardItem>
|
|
|
|
</Card>
|
|
|
|
</Content>
|
|
|
|
</Container>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|