-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathNavigation.js
61 lines (54 loc) · 1.54 KB
/
Navigation.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
import { createNativeStackNavigator } from "@react-navigation/native-stack";
import Home from "./src/screens/Home";
import Login from "./src/screens/Login"
import Specifications from "./src/screens/Specifications";
import Project from "./src/screens/Project";
import AddSpecifications from "./src/screens/AddSpecifications";
import Messages from './src/screens/Messages'
import Chat from './src/screens/Chat'
const Stack = createNativeStackNavigator();
export const HomeNavigator = () => {
return (
<Stack.Navigator>
<Stack.Group>
<Stack.Screen
name="HomePage"
component={Home}
options={{
headerShown: false,
}}
/>
<Stack.Screen
name="Project"
component={Project}
options={{
headerShown: false,
}}
/>
<Stack.Screen name="Specifications" component={Specifications} />
<Stack.Screen
name="AddSpecifications"
component={AddSpecifications}
options={({ route }) => ({
title: `${route.params.projectName} Specifications`,
})}
/>
</Stack.Group>
</Stack.Navigator>
);
};
export const MessagesNavigator = () => {
return (
<Stack.Navigator>
<Stack.Screen name="Messages" component={Messages} />
<Stack.Screen name="Chat" component={Chat} />
</Stack.Navigator>
);
};
export const LoginNavigator = () => {
return (
<Stack.Navigator>
<Stack.Screen name="Login" component={Login} />
</Stack.Navigator>
);
};