From 7220483540d6435f989626cc11b10761918a92a1 Mon Sep 17 00:00:00 2001 From: tonyfages Date: Sun, 31 Mar 2024 19:50:16 +0200 Subject: [PATCH] tp8 --- JokesApp/navigation/Navigation.tsx | 9 +++--- JokesApp/navigation/StackNavigation.tsx | 40 +++++++++++++++++++++---- 2 files changed, 39 insertions(+), 10 deletions(-) diff --git a/JokesApp/navigation/Navigation.tsx b/JokesApp/navigation/Navigation.tsx index 1dcd4c0..05a38b8 100644 --- a/JokesApp/navigation/Navigation.tsx +++ b/JokesApp/navigation/Navigation.tsx @@ -8,7 +8,7 @@ import {AccueilScreen} from "../screens/AccueilScreen"; import {AddJokeScreen} from "../screens/AddJokeScreen"; import {SettingsScreen} from "../screens/SettingsScreen"; import {JokeListItems} from "../components/ListeJokeComponent"; -import StackNavigation from "./StackNavigation"; +import {CatalogueScreen, FavoriteScreen} from "./StackNavigation"; const homeIcon = require("../assets/home_icon.png"); const listIcon = require("../assets/list_icon.png"); const addIcon = require("../assets/add_icon.png"); @@ -58,7 +58,7 @@ export function Navigation(){ /> ) }}/> - ( - ( - ) + ), + headerShown: false, }}/> + + + +)} + +export function FavoriteScreen(){ const Stack = createStackNavigator(); return( - - - + + ) } \ No newline at end of file