Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 54 additions & 0 deletions App.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
import React from 'react';
import { NavigationContainer } from '@react-navigation/native';
import { createNativeStackNavigator } from '@react-navigation/native-stack';
import { StyleSheet } from 'react-native';
import { SafeAreaProvider } from "react-native-safe-area-context";
import { Toaster } from 'sonner-native';
import HomeScreen from "./screens/HomeScreen";
import LoginScreen from "./screens/LoginScreen";
import SignupScreen from "./screens/SignupScreen";
import DashboardScreen from "./screens/DashboardScreen";
import SymptomCheckerScreen from "./screens/SymptomCheckerScreen";
import HistoryScreen from "./screens/HistoryScreen";
import MedicationsScreen from "./screens/MedicationsScreen";
import AppointmentsScreen from "./screens/AppointmentsScreen";
import HealthStatsScreen from "./screens/HealthStatsScreen";

const Stack = createNativeStackNavigator();

function RootStack() {
return ( <Stack.Navigator
screenOptions={{
headerShown: false,
animation: 'slide_from_right'
}}
>
<Stack.Screen name="Home" component={HomeScreen} />
<Stack.Screen name="Login" component={LoginScreen} />
<Stack.Screen name="Signup" component={SignupScreen} />
<Stack.Screen name="Dashboard" component={DashboardScreen} />
<Stack.Screen name="SymptomChecker" component={SymptomCheckerScreen} />
<Stack.Screen name="History" component={HistoryScreen} />
<Stack.Screen name="Medications" component={MedicationsScreen} />
<Stack.Screen name="Appointments" component={AppointmentsScreen} />
<Stack.Screen name="HealthStats" component={HealthStatsScreen} />
</Stack.Navigator>
);
}

export default function App() {
return (
<SafeAreaProvider style={styles.container}>
<Toaster />
<NavigationContainer>
<RootStack />
</NavigationContainer>
</SafeAreaProvider>
);
}

const styles = StyleSheet.create({
container: {
flex: 1
}
});