-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.js
More file actions
105 lines (97 loc) · 2.84 KB
/
App.js
File metadata and controls
105 lines (97 loc) · 2.84 KB
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
import React from "react";
import { View, StyleSheet, Text } from "react-native";
import { NavigationContainer } from "@react-navigation/native";
import { createNativeStackNavigator } from "@react-navigation/native-stack";
import Home from "./src/screens/Home";
import About from "./src/screens/About";
import Contact from "./src/screens/Contact";
import Course from "./src/screens/Course";
import UserData from "./src/screens/UserData";
import {
useFonts,
JosefinSans_400Regular,
JosefinSans_500Medium,
} from "@expo-google-fonts/josefin-sans";
import { Nunito_600SemiBold, Nunito_700Bold } from "@expo-google-fonts/nunito";
import AppLoading from "expo-app-loading";
const App = () => {
const Stack = createNativeStackNavigator();
let [fontsLoaded] = useFonts({
JosefinSans_400Regular,
JosefinSans_500Medium,
Nunito_600SemiBold,
Nunito_700Bold,
});
if (!fontsLoaded) {
<AppLoading />;
}
return (
<NavigationContainer>
<Stack.Navigator initialRouteName="Home">
{/* <Stack.Screen name="Home" component={Home} /> */}
{/* Home Screen */}
<Stack.Screen name="Home" options={{ headerShown: false }}>
{(props) => <Home {...props} channelName={"netSchool"} />}
</Stack.Screen>
{/* Course Screen */}
<Stack.Screen
name="Course"
component={Course}
options={{
headerTitleStyle: {
fontSize: 25,
fontFamily: "Nunito_600SemiBold",
color: "blue",
},
headerTitle: "Courses",
headerTitleAlign: "center",
}}
/>
{/* User Data Screen */}
<Stack.Screen
name="Student"
component={UserData}
options={{
headerTitleStyle: {
fontSize: 25,
fontFamily: "Nunito_600SemiBold",
color: "blue",
},
headerTitle: "Students",
headerTitleAlign: "center",
}}
/>
{/* About Screen */}
<Stack.Screen
name="About"
component={About}
options={{
headerTitleStyle: {
fontSize: 25,
fontFamily: "Nunito_600SemiBold",
color: "blue",
},
headerTitle: "About",
headerTitleAlign: "center",
}}
/>
{/* Contact Screen */}
<Stack.Screen
name="Contact"
component={Contact}
options={{
headerTitleStyle: {
fontSize: 25,
fontFamily: "Nunito_600SemiBold",
color: "blue",
},
headerTitle: "Contact",
headerTitleAlign: "center",
}}
/>
</Stack.Navigator>
</NavigationContainer>
);
};
const styles = StyleSheet.create({});
export default App;