-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathHomeScreen.js
More file actions
30 lines (26 loc) · 814 Bytes
/
HomeScreen.js
File metadata and controls
30 lines (26 loc) · 814 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
import React from 'react';
import { View, Text, StyleSheet, Button } from 'react-native';
import { useNavigation } from '@react-navigation/native';
import colors from './Config/colors'; // Ensure this path is correct
const HomeScreen = () => {
const navigation = useNavigation();
return (
<View style={styles.container}>
<Text style={styles.text}>Home Screen</Text>
<Button title="Go to Grades" onPress={() => navigation.navigate('Grades')} />
</View>
);
};
const styles = StyleSheet.create({
container: {
flex: 1,
justifyContent: 'center',
alignItems: 'center',
backgroundColor: colors.lightOrange, // Use color from your colors.js
},
text: {
fontSize: 20,
color: colors.darkBlack, // Use color from your colors.js
},
});
export default HomeScreen;