Skip to content
Open
Show file tree
Hide file tree
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
21 changes: 21 additions & 0 deletions submissions/T045_TEAM-NOVA/App.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import { NavigationContainer } from '@react-navigation/native';
import { StatusBar } from 'expo-status-bar';
import { StyleSheet, Text, View } from 'react-native';
import AppNavigation from './AppNavigation';

export default function App() {
return (
<NavigationContainer>
<AppNavigation />
</NavigationContainer>
);
}

const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: '#fff',
alignItems: 'center',
justifyContent: 'center',
},
});
71 changes: 71 additions & 0 deletions submissions/T045_TEAM-NOVA/AppNavigation.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
import { StyleSheet, Text, View, TouchableOpacity } from 'react-native'
import React from 'react'
import { createNativeStackNavigator } from '@react-navigation/native-stack'
import { Ionicons } from '@expo/vector-icons'
import UserLoginScreen from "./screens/auth/user/UserLoginScreen"

import UserregisterScreen from './screens/auth/user/UserregisterScreen';
import PractitionerRegisterScreen from "./screens/auth/practitioner/PractitionerRegisterScreen"
import PractitionerLoginScreen from "./screens/auth/practitioner/PractitionerLoginScreen"
import SplashScreen from "./screens/auth/SplashScreen"
import PractitionerHomeScreen from './screens/auth/practitioner/PractitionerHomeScreen';
import UserHomeScreen from './screens/auth/user/UserHomeScreen';
import UserBottomBar from './screens/auth/user/UserBottomBar/UserBottomBar';
import CollectUserDetails from './screens/auth/user/CollectUserDetails';
import UserTherapyState from "./screens/auth/user/UserTherapyState";
// import UserProgressScreen from './screens/auth/user/UserBottomBar/UserProgressScreen';
import UserProfileScreen from './screens/auth/user/UserBottomBar/UserProfileScreen';
import PractitionerUserProfile from './screens/auth/practitioner/PractitionerUserProfile';
import PrePostUserDetails from './screens/auth/practitioner/PrePostUserDetails';
import UserChatScreen from './screens/auth/user/UserBottomBar/UserChatScreen'



const Stack = createNativeStackNavigator()


const AppNavigation = () => {
return (
<Stack.Navigator initialRouteName= "PatientLoginPage" screenOptions={{
headerShown: false
}}>

{/* Common Screens */}
<Stack.Screen name='SplashScreen' component={SplashScreen} />

{/* ========== PATIENT/USER FLOW ========== */}
<Stack.Screen name='PatientLoginPage' component={UserLoginScreen} />
<Stack.Screen name='PatientRegisterPage' component={UserregisterScreen} />
<Stack.Screen name='PatientHomePage' component={UserHomeScreen} />
<Stack.Screen name='CollectUserDetailsPage' component={CollectUserDetails} />
<Stack.Screen name="UserTherapyStatusPage" component={UserTherapyState} />
<Stack.Screen name='UserProfilePage' component={UserProfileScreen} />
{/* <Stack.Screen name='UserProgressPage' component={UserProgressScreen} /> */}
<Stack.Screen name='UserBottomPage' component={UserBottomBar} />
<Stack.Screen name='UserChatPage' component={UserChatScreen} options={{headerShown:true,
headerTitle:"Ojas AI",
headerStyle:{backgroundColor:"#fff"},
headerTintColor:"#000",
headerTitleStyle:{fontWeight:"bold"}
}}/>


{/* ========== PRACTITIONER FLOW ========== */}
<Stack.Screen name='PractitionerLoginPage' component={PractitionerLoginScreen} />
<Stack.Screen
name='PractitionerRegisterPage'
component={PractitionerRegisterScreen}/>
<Stack.Screen name='PractitionerHomePage' component={PractitionerHomeScreen} />
<Stack.Screen name='PractitionerUserProfilePage' component={PractitionerUserProfile} />
<Stack.Screen name='PrePostUserDetailsPage' component={PrePostUserDetails} />

{/* ========== AI FEATURES ========== */}


</Stack.Navigator>
)
}

export default AppNavigation

const styles = StyleSheet.create({})
29 changes: 29 additions & 0 deletions submissions/T045_TEAM-NOVA/app.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"expo": {
"name": "ojas",
"slug": "ojas",
"version": "1.0.0",
"orientation": "portrait",
"icon": "./assets/icon.png",
"userInterfaceStyle": "light",
"newArchEnabled": true,
"splash": {
"image": "./assets/splash-icon.png",
"resizeMode": "contain",
"backgroundColor": "#ffffff"
},
"ios": {
"supportsTablet": true
},
"android": {
"adaptiveIcon": {
"foregroundImage": "./assets/adaptive-icon.png",
"backgroundColor": "#ffffff"
},
"edgeToEdgeEnabled": true
},
"web": {
"favicon": "./assets/favicon.png"
}
}
}
8 changes: 8 additions & 0 deletions submissions/T045_TEAM-NOVA/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { registerRootComponent } from 'expo';

import App from './App';

// registerRootComponent calls AppRegistry.registerComponent('main', () => App);
// It also ensures that whether you load the app in Expo Go or in a native build,
// the environment is set up appropriately
registerRootComponent(App);
Loading