From ec588e3186582d8a34e778c4a334c187dd2bee1f Mon Sep 17 00:00:00 2001 From: Pierre Ferreira Date: Wed, 8 Feb 2023 10:42:42 +0100 Subject: [PATCH] =?UTF-8?q?:rocket:=20second=20essaie=20de=20push=20tout?= =?UTF-8?q?=20mon=20code=20sur=20le=20depot=20(=C3=A0=20tester)=20:test=5F?= =?UTF-8?q?tube:?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- App.tsx | 27 +++++++++--------- components/TabBarIcon.tsx | 10 +++++++ components/mainComponent.tsx | 40 ++++++++++++++++++++++++++ navigation/ListNavigator.tsx | 21 ++++++++++++++ navigation/Navigation.tsx | 41 +++++++++++++++++++++++++++ navigation/StackNavigation.tsx | 23 +++++++++++++++ screens/HomeScreen.tsx | 51 ++++++++++++++++++++++++++++++++++ screens/ListFav.tsx | 31 +++++++++++++++++++++ screens/ListScreen.tsx | 42 ++++++++++++++++++++++++++++ 9 files changed, 272 insertions(+), 14 deletions(-) create mode 100644 components/TabBarIcon.tsx create mode 100644 components/mainComponent.tsx create mode 100644 navigation/ListNavigator.tsx create mode 100644 navigation/Navigation.tsx create mode 100644 navigation/StackNavigation.tsx create mode 100644 screens/HomeScreen.tsx create mode 100644 screens/ListFav.tsx create mode 100644 screens/ListScreen.tsx diff --git a/App.tsx b/App.tsx index 413bf1b..99a4052 100644 --- a/App.tsx +++ b/App.tsx @@ -1,20 +1,19 @@ import { StatusBar } from 'expo-status-bar'; -import { StyleSheet, Text, View } from 'react-native'; +import { StyleSheet, Text, View, Button } from 'react-native'; +import React, { useState } from "react"; +import Navigation from './navigation/Navigation'; + +import { + SafeAreaView, + SafeAreaProvider, +} from 'react-native-safe-area-context'; export default function App() { + //safearea + //mettre le navigateur ayant le princ return ( - - Vroum Vroum i'm in my mom's car - - + + + ); } - -const styles = StyleSheet.create({ - container: { - flex: 1, - backgroundColor: '#fff', - alignItems: 'center', - justifyContent: 'center', - }, -}); diff --git a/components/TabBarIcon.tsx b/components/TabBarIcon.tsx new file mode 100644 index 0000000..2d8bab3 --- /dev/null +++ b/components/TabBarIcon.tsx @@ -0,0 +1,10 @@ + +import { FontAwesome } from '@expo/vector-icons'; + + +export default function TabBarIcon(props: { + name: React.ComponentProps['name']; + color: string; +}) { + return ; +} \ No newline at end of file diff --git a/components/mainComponent.tsx b/components/mainComponent.tsx new file mode 100644 index 0000000..99deaa0 --- /dev/null +++ b/components/mainComponent.tsx @@ -0,0 +1,40 @@ +import { StatusBar } from 'expo-status-bar'; +import { StyleSheet, Text, View, Button } from 'react-native'; +import React, { useState } from "react"; + +export default function Main(props : mainProps){ + const [count, setCount] = useState(0); + return ( + + + Maman, prend la caméra ! ! + + {count} +