import React from 'react'; import {Platform, StyleSheet, Linking, Alert} from 'react-native'; import {Container, Content, Text, Card, CardItem, Body, Icon, Left, Right, Thumbnail, H1} from 'native-base'; import CustomHeader from "../../components/CustomHeader"; import i18n from "i18n-js"; import appJson from '../../app'; import packageJson from '../../package'; const links = { appstore: 'https://qwant.com', playstore: 'https://qwant.com', gitlab: 'https://qwant.com', bugs: 'https://qwant.com', changelog: 'https://qwant.com', license: 'https://qwant.com', mail: "mailto:arnaud.vergnet@netc.fr?subject=Application Amicale INSA Toulouse&body=", linkedin: 'https://www.linkedin.com/in/arnaud-vergnet-434ba5179/', facebook: 'https://www.facebook.com/arnaud.vergnet', react: 'https://facebook.github.io/react-native/', }; export default class AboutScreen extends React.Component { openWebLink(link) { Linking.openURL(link).catch((err) => console.error('Error opening link', err)); } render() { const nav = this.props.navigation; return (

Amicale INSA Toulouse

v.{appJson.expo.version}
this.openWebLink(Platform.OS === "ios" ? links.appstore : links.playstore)}> {Platform.OS === "ios" ? i18n.t('aboutScreen.appstore') : i18n.t('aboutScreen.playstore')} this.openWebLink(links.gitlab)}> Gitlab this.openWebLink(links.bugs)}> {i18n.t('aboutScreen.bugs')} this.openWebLink(links.changelog)}> {i18n.t('aboutScreen.changelog')} this.openWebLink(links.license)}> {i18n.t('aboutScreen.license')}
{i18n.t('aboutScreen.author')} Alert.alert('Coucou', 'Whaou')}> Arnaud VERGNET this.openWebLink(links.mail)}> {i18n.t('aboutScreen.mail')} this.openWebLink(links.linkedin)}> Linkedin this.openWebLink(links.facebook)}> Facebook {i18n.t('aboutScreen.technologies')} this.openWebLink(links.react)}> {i18n.t('aboutScreen.reactNative')} this.props.navigation.navigate('AboutDependenciesScreen', {data: packageJson.dependencies})}> {i18n.t('aboutScreen.libs')}
); } } const styles = StyleSheet.create({ container: { flex: 1, backgroundColor: '#fff', alignItems: 'center', justifyContent: 'center', }, });