bfd35905c9
- Added favicon and icon assets for the mobile app. - Implemented EmotionPicker component for selecting emotions with child options. - Created hooks for fetching emotions, feeds, and rapport data. - Established API service for handling requests and authentication. - Integrated Zustand for state management of user authentication. - Defined color palette for the application. - Set up TypeScript types for various entities including User, Emotion, and Feed. - Configured Babel and TypeScript for the mobile project. - Added package.json with necessary dependencies for Expo and React Native.
54 lines
1.5 KiB
TypeScript
54 lines
1.5 KiB
TypeScript
import { Tabs } from 'expo-router';
|
|
import { Ionicons } from '@expo/vector-icons';
|
|
import { Colors } from '@/lib/colors';
|
|
|
|
export default function TabLayout() {
|
|
return (
|
|
<Tabs
|
|
screenOptions={{
|
|
tabBarActiveTintColor: Colors.secondary,
|
|
tabBarInactiveTintColor: Colors.gray[400],
|
|
tabBarStyle: {
|
|
backgroundColor: Colors.white,
|
|
borderTopColor: Colors.gray[200],
|
|
paddingBottom: 8,
|
|
paddingTop: 8,
|
|
height: 65,
|
|
},
|
|
headerStyle: { backgroundColor: Colors.white },
|
|
headerTitleStyle: { fontWeight: '700', color: Colors.black },
|
|
}}
|
|
>
|
|
<Tabs.Screen
|
|
name="index"
|
|
options={{
|
|
title: 'Accueil',
|
|
tabBarIcon: ({ color, size }) => <Ionicons name="home" size={size} color={color} />,
|
|
}}
|
|
/>
|
|
<Tabs.Screen
|
|
name="journal"
|
|
options={{
|
|
title: 'Journal',
|
|
headerShown: false,
|
|
tabBarIcon: ({ color, size }) => <Ionicons name="book" size={size} color={color} />,
|
|
}}
|
|
/>
|
|
<Tabs.Screen
|
|
name="info"
|
|
options={{
|
|
title: 'Infos',
|
|
tabBarIcon: ({ color, size }) => <Ionicons name="information-circle" size={size} color={color} />,
|
|
}}
|
|
/>
|
|
<Tabs.Screen
|
|
name="profile"
|
|
options={{
|
|
title: 'Profil',
|
|
tabBarIcon: ({ color, size }) => <Ionicons name="person" size={size} color={color} />,
|
|
}}
|
|
/>
|
|
</Tabs>
|
|
);
|
|
}
|