From 3f38eff39393718fdea3d879eea08b09b29a2d44 Mon Sep 17 00:00:00 2001 From: Vincent BRIDIER Date: Fri, 30 Sep 2022 17:40:03 +0200 Subject: [PATCH] Init HomeScreen --- ComApp/src/App.js | 3 +- ComApp/src/App/Views/HomeScreen.js | 43 +++++++++++++++++++++ ComApp/src/App/Views/InstallScreen.js | 17 ++------ ComApp/src/Resources/CommonStyles.js | 7 +--- ComApp/src/Resources/Styles/HomeStyle.js | 39 +++++++++++++++++++ ComApp/src/Resources/Styles/InstallStyle.js | 19 +++++++++ 6 files changed, 108 insertions(+), 20 deletions(-) create mode 100644 ComApp/src/App/Views/HomeScreen.js create mode 100644 ComApp/src/Resources/Styles/HomeStyle.js create mode 100644 ComApp/src/Resources/Styles/InstallStyle.js diff --git a/ComApp/src/App.js b/ComApp/src/App.js index 068bc75..16f12b9 100644 --- a/ComApp/src/App.js +++ b/ComApp/src/App.js @@ -11,11 +11,12 @@ import type {Node} from 'react'; // Views import InstallScreen from './App/Views/InstallScreen'; +import HomeScreen from './App/Views/HomeScreen'; const App: () => Node = () => { return ( - + ); }; diff --git a/ComApp/src/App/Views/HomeScreen.js b/ComApp/src/App/Views/HomeScreen.js new file mode 100644 index 0000000..519902d --- /dev/null +++ b/ComApp/src/App/Views/HomeScreen.js @@ -0,0 +1,43 @@ +import React from 'react'; +import { View, ImageBackground, TouchableOpacity, Text, Image } from 'react-native'; +// Common Styles +import commonStyles from '../../Resources/CommonStyles'; +// Style +import styles from '../../Resources/Styles/HomeStyle'; +// Translations +import i18n from "../../I18n"; +// FileSytem +import * as FileSystem from 'expo-file-system'; + +class HomeScreen extends React.Component { + render() { + return ( + + + { }} style={styles.button}> + + {i18n.t('home_s.1')} + + { }} style={styles.button}> + + {i18n.t('home_s.2')} + + { }} style={styles.button}> + + {i18n.t('home_s.3')} + + { }} style={styles.button}> + + {i18n.t('global.videos')} + + { }} style={styles.button}> + + {i18n.t('global.contacts')} + + + + ); + } +} + +export default HomeScreen; \ No newline at end of file diff --git a/ComApp/src/App/Views/InstallScreen.js b/ComApp/src/App/Views/InstallScreen.js index 4f1a175..42ea940 100644 --- a/ComApp/src/App/Views/InstallScreen.js +++ b/ComApp/src/App/Views/InstallScreen.js @@ -1,9 +1,11 @@ import React from 'react'; -import { ImageBackground, View, Image, TextInput, Button, StyleSheet, Alert } from 'react-native'; +import { ImageBackground, View, Image, TextInput, Button, Alert } from 'react-native'; // Helpers import Helpers from '../Lib/Helpers'; // Common Styles import commonStyles from '../../Resources/CommonStyles'; +// Style +import styles from '../../Resources/Styles/InstallStyle'; // Translations import i18n from "../../I18n"; // Controller @@ -17,7 +19,7 @@ class InstallScreen extends React.Component { render() { return ( - +