|
|
|
@ -12,16 +12,40 @@ export default function Navigation() {
|
|
|
|
|
primary: 'rgb(255, 45, 85)',
|
|
|
|
|
card: 'rgb(35, 33, 35)',
|
|
|
|
|
border: 'rgb(35, 33, 35)',
|
|
|
|
|
},
|
|
|
|
|
text: 'rgb(255, 255, 255)',
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
return (
|
|
|
|
|
<NavigationContainer theme={MyTheme}>
|
|
|
|
|
<BottomTabNavigator.Navigator initialRouteName="Home">
|
|
|
|
|
<BottomTabNavigator.Screen name="Home" component={FavoriteNavigation}
|
|
|
|
|
<BottomTabNavigator.Navigator
|
|
|
|
|
initialRouteName="Spots"
|
|
|
|
|
screenOptions={{
|
|
|
|
|
//tabBarShowLabel: false, //to remove the titles under the icons
|
|
|
|
|
tabBarStyle: {height: 60, position: 'absolute', bottom: 20, borderRadius: 90, marginHorizontal: 25},
|
|
|
|
|
tabBarIconStyle: { marginBottom: -20 },
|
|
|
|
|
tabBarLabelStyle: { bottom: '-70%' }
|
|
|
|
|
|
|
|
|
|
}}>
|
|
|
|
|
<BottomTabNavigator.Screen name="Spots" component={FavoriteNavigation}
|
|
|
|
|
options={{
|
|
|
|
|
headerShown: false,
|
|
|
|
|
tabBarIcon: ({color}) => <TabBarIcon name="music" color={color}/>,
|
|
|
|
|
}}/>
|
|
|
|
|
<BottomTabNavigator.Screen name="Favories" component={FavoriteNavigation}
|
|
|
|
|
options={{
|
|
|
|
|
headerShown: false,
|
|
|
|
|
tabBarIcon: ({color}) => <TabBarIcon name="heart" color={color}/>,
|
|
|
|
|
}}/>
|
|
|
|
|
<BottomTabNavigator.Screen name="Messages" component={FavoriteNavigation}
|
|
|
|
|
options={{
|
|
|
|
|
headerShown: false,
|
|
|
|
|
tabBarIcon: ({color}) => <TabBarIcon name="comment" color={color}/>,
|
|
|
|
|
}}/>
|
|
|
|
|
<BottomTabNavigator.Screen name="Paramètres" component={FavoriteNavigation}
|
|
|
|
|
options={{
|
|
|
|
|
headerShown: false,
|
|
|
|
|
tabBarIcon: ({color}) => <TabBarIcon name="cog" color={color}/>,
|
|
|
|
|
}}/>
|
|
|
|
|
</BottomTabNavigator.Navigator>
|
|
|
|
|
</NavigationContainer>
|
|
|
|
|
)
|
|
|
|
|