|
|
|
@ -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(){
|
|
|
|
|
/>
|
|
|
|
|
)
|
|
|
|
|
}}/>
|
|
|
|
|
<BottomTabNavigator.Screen name="Catalogue" component={StackNavigation}
|
|
|
|
|
<BottomTabNavigator.Screen name="Catalogue" component={CatalogueScreen}
|
|
|
|
|
options={{
|
|
|
|
|
tabBarIcon: ({focused}) => (
|
|
|
|
|
<Image source={listIcon}
|
|
|
|
@ -79,13 +79,14 @@ export function Navigation(){
|
|
|
|
|
|
|
|
|
|
}}/>
|
|
|
|
|
|
|
|
|
|
<BottomTabNavigator.Screen name="Favoris" component={ListFavoriteJokeScreen}
|
|
|
|
|
<BottomTabNavigator.Screen name="Favoris" component={FavoriteScreen}
|
|
|
|
|
options={{
|
|
|
|
|
tabBarIcon: ({focused}) => (
|
|
|
|
|
<Image source={favIcon}
|
|
|
|
|
style={{ tintColor: focused ? darksalmonColor : purpleColor }}
|
|
|
|
|
/>
|
|
|
|
|
)
|
|
|
|
|
),
|
|
|
|
|
headerShown: false,
|
|
|
|
|
}}/>
|
|
|
|
|
<BottomTabNavigator.Screen name="Paramètres" component={SettingsScreen}
|
|
|
|
|
options={{
|
|
|
|
|