Core features implemented: - Expo cross-platform setup (iOS, Android, Web) - Bottom tab navigation (Home, Resources, Community, Profile) - Home screen with all major sections: * Hero section with mission statement * Happy Mail integration * Connect/Support section * Podcast information * Features grid * Wings of Remembrance - Resources screen with curated support materials - Community screen with support groups and circles - Profile screen with user account management - Auth layout structure (login, signup, forgot password) Ready for: - Authentication integration with FastAPI backend - API integration for community features - Database connectivity - Testing on iOS, Android, and Web
69 lines
1.6 KiB
TypeScript
69 lines
1.6 KiB
TypeScript
import { Tabs } from 'expo-router';
|
|
import { Ionicons } from '@expo/vector-icons';
|
|
|
|
export default function TabLayout() {
|
|
return (
|
|
<Tabs
|
|
screenOptions={{
|
|
headerShown: true,
|
|
tabBarActiveTintColor: '#0066cc',
|
|
tabBarInactiveTintColor: '#999',
|
|
headerStyle: {
|
|
backgroundColor: '#ffffff',
|
|
borderBottomColor: '#e0e0e0',
|
|
borderBottomWidth: 1,
|
|
},
|
|
headerTitleStyle: {
|
|
fontSize: 18,
|
|
fontWeight: '600',
|
|
color: '#000',
|
|
},
|
|
}}
|
|
>
|
|
<Tabs.Screen
|
|
name="index"
|
|
options={{
|
|
title: 'Home',
|
|
tabBarLabel: 'Home',
|
|
headerTitle: 'MoreThanADiagnosis',
|
|
tabBarIcon: ({ color, size }) => (
|
|
<Ionicons name="home" size={size} color={color} />
|
|
),
|
|
}}
|
|
/>
|
|
|
|
<Tabs.Screen
|
|
name="resources"
|
|
options={{
|
|
title: 'Resources',
|
|
tabBarLabel: 'Resources',
|
|
tabBarIcon: ({ color, size }) => (
|
|
<Ionicons name="book" size={size} color={color} />
|
|
),
|
|
}}
|
|
/>
|
|
|
|
<Tabs.Screen
|
|
name="community"
|
|
options={{
|
|
title: 'Community',
|
|
tabBarLabel: 'Community',
|
|
tabBarIcon: ({ color, size }) => (
|
|
<Ionicons name="people" size={size} color={color} />
|
|
),
|
|
}}
|
|
/>
|
|
|
|
<Tabs.Screen
|
|
name="profile"
|
|
options={{
|
|
title: 'Profile',
|
|
tabBarLabel: 'Profile',
|
|
tabBarIcon: ({ color, size }) => (
|
|
<Ionicons name="person" size={size} color={color} />
|
|
),
|
|
}}
|
|
/>
|
|
</Tabs>
|
|
);
|
|
}
|