@@ -6,7 +6,7 @@ import { router } from 'expo-router';
66
77const { width } = Dimensions . get ( 'window' ) ;
88
9- const HomeScreen = ( { navigation } ) => {
9+ const HomeScreen = ( ) => {
1010 // TODO: Replace with real data
1111 const bmiValue = '20.1' ;
1212 const { name } = useUser ( ) ;
@@ -30,7 +30,7 @@ const HomeScreen = ({ navigation }) => {
3030 < View style = { styles . header } >
3131 < Text style = { styles . welcomeText } > Welcome Back,</ Text >
3232 < Text style = { styles . userName } > { name } </ Text >
33- < TouchableOpacity style = { styles . notificationBtn } onPress = { ( ) => navigation . navigate ( 'Notifications ') } >
33+ < TouchableOpacity style = { styles . notificationBtn } onPress = { ( ) => router . push ( '/notification ') } >
3434 < Image source = { require ( '../assets/images/bell.png' ) } style = { styles . bellIcon } />
3535 </ TouchableOpacity >
3636 </ View >
@@ -40,7 +40,7 @@ const HomeScreen = ({ navigation }) => {
4040 < View style = { styles . bmiInfo } >
4141 < Text style = { styles . bmiLabel } > BMI (Body Mass Index)</ Text >
4242 < Text style = { styles . bmiStatus } > You have a normal weight</ Text >
43- < TouchableOpacity style = { styles . viewMoreBtn } onPress = { ( ) => navigation . navigate ( 'BMIDetails ') } >
43+ < TouchableOpacity style = { styles . viewMoreBtn } onPress = { ( ) => alert ( 'BMI screen not yet implemented ') } >
4444 < Text style = { styles . viewMoreText } > View More</ Text >
4545 </ TouchableOpacity >
4646 </ View >
@@ -61,7 +61,7 @@ const HomeScreen = ({ navigation }) => {
6161 { /* Today Target */ }
6262 < View style = { styles . targetCard } >
6363 < Text style = { styles . targetText } > Today Target</ Text >
64- < TouchableOpacity style = { styles . checkBtn } onPress = { ( ) => navigation . navigate ( 'Targets' ) } >
64+ < TouchableOpacity style = { styles . checkBtn } onPress = { ( ) => alert ( 'Targets screen not yet implemented ' ) } >
6565 < Text style = { styles . checkText } > Check</ Text >
6666 </ TouchableOpacity >
6767 </ View >
@@ -87,12 +87,10 @@ const HomeScreen = ({ navigation }) => {
8787 < View style = { styles . statsCard } >
8888 < Text style = { styles . statsLabel } > Water Intake</ Text >
8989 < Text style = { styles . statsValue } > { waterIntake } </ Text >
90- { /* Timeline dots & bars could go here */ }
9190 </ View >
9291 < View style = { styles . statsCard } >
9392 < Text style = { styles . statsLabel } > Sleep</ Text >
9493 < Text style = { styles . statsValue } > { sleepHours } </ Text >
95- { /* Sleep wave chart placeholder */ }
9694 </ View >
9795 < View style = { styles . statsCardSmall } >
9896 < Text style = { styles . statsLabel } > Calories</ Text >
@@ -139,12 +137,12 @@ const HomeScreen = ({ navigation }) => {
139137 < View style = { styles . latestSection } >
140138 < View style = { styles . sectionHeader } >
141139 < Text style = { styles . sectionTitle } > Latest Workout</ Text >
142- < TouchableOpacity onPress = { ( ) => navigation . navigate ( 'WorkoutList ') } >
140+ < TouchableOpacity onPress = { ( ) => alert ( 'Workout List not yet implemented ') } >
143141 < Text style = { styles . seeMore } > See more</ Text >
144142 </ TouchableOpacity >
145143 </ View >
146144 { latestWorkouts . map ( w => (
147- < TouchableOpacity key = { w . id } style = { styles . workoutItem } onPress = { ( ) => navigation . navigate ( 'WorkoutDetail' , { id : w . id } ) } >
145+ < TouchableOpacity key = { w . id } style = { styles . workoutItem } onPress = { ( ) => alert ( 'Workout Details not yet implemented' ) } >
148146 < Image source = { w . icon } style = { styles . workoutIcon } />
149147 < View style = { styles . workoutInfo } >
150148 < Text style = { styles . workoutType } > { w . type } </ Text >
0 commit comments