-
Notifications
You must be signed in to change notification settings - Fork 8
/
App.js
111 lines (108 loc) · 3.38 KB
/
App.js
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
106
107
108
109
110
111
// App.js
import React from 'react';
import { NavigationContainer } from '@react-navigation/native';
import { createStackNavigator } from '@react-navigation/stack';
import LoadingScreen from './src/LoadingScreen';
import ThoughtScreen from './src/ThoughtScreen';
import LoginScreen from './src/LoginScreen';
import RegisterScreen from './src/RegisterScreen';
import HomeScreen from './src/HomeScreen';
import ReminderPage from './src/ReminderPage';
import HomeServ from './src/HomeServ';
import Aboutus from './src/Aboutus';
import Agric from './src/Agric';
import Others from './src/Others';
import Professional from './src/Professional';
import Contact from './src/Contact';
import NewPage from './src/NewPage';
import ValamPage from './src/agricultural/ValamPage';
import VehicleScreen from './src/Vehicle'; // Add this import statement
import { AppProvider } from './src/AppContext';
const Stack = createStackNavigator();
const App = () => {
return (
<AppProvider>
<NavigationContainer>
<Stack.Navigator initialRouteName="Loading">
<Stack.Screen
name="Loading"
component={LoadingScreen}
options={{ headerShown: false }}
/>
<Stack.Screen
name="Thought"
component={ThoughtScreen}
options={{ headerShown: false }}
/>
<Stack.Screen
name="Login"
component={LoginScreen}
options={{ title: 'Login' }}
/>
<Stack.Screen
name="Register"
component={RegisterScreen}
options={{ title: 'Register' }}
/>
<Stack.Screen
name="Home"
component={HomeScreen}
options={{ headerShown: false }}
/>
<Stack.Screen
name="Reminders"
component={ReminderPage}
options={{ title: 'Reminders' }}
/>
<Stack.Screen
name="HomeServ"
component={HomeServ}
options={{ title: 'Home Services' }}
/>
<Stack.Screen
name="Aboutus"
component={Aboutus}
options={{ title: 'Aboutus' }}
/>
<Stack.Screen
name="Agric"
component={Agric}
options={{ title: 'Agric' }}
/>
<Stack.Screen
name="Others"
component={Others}
options={{ title: 'Others' }}
/>
<Stack.Screen
name="Professional"
component={Professional}
options={{ title: 'Professional' }}
/>
<Stack.Screen
name="Contact"
component={Contact}
options={{ title: 'Contact' }}
/>
<Stack.Screen
name="NewPage"
component={NewPage}
options={{ title: 'New Page' }}
/>
<Stack.Screen
name="ValamPage"
component={ValamPage}
options={{ title: 'valam' }}
/>
<Stack.Screen
name="Vehicle"
component={VehicleScreen}
options={{ title: 'Vehicle' }}
/>
{/* Add other screens here */}
</Stack.Navigator>
</NavigationContainer>
</AppProvider>
);
};
export default App;