-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstackNavigator.js
More file actions
37 lines (35 loc) · 1.21 KB
/
Copy pathstackNavigator.js
File metadata and controls
37 lines (35 loc) · 1.21 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
import { StyleSheet, Text, View } from "react-native";
import React from "react";
import { NavigationContainer } from "@react-navigation/native";
import Login from "./screens/Login.js";
import SignUp from "./screens/Signup.js";
import Home from "./screens/Home.js";
import Friends from "./screens/Friends.js";
import { createNativeStackNavigator } from "@react-navigation/native-stack";
import Chats from "./screens/Chats.js";
import ChatMessage from "./screens/ChatMessage.js";
const stackNavigator = () => {
const Stack = createNativeStackNavigator();
return (
<NavigationContainer>
<Stack.Navigator>
<Stack.Screen
name="Login"
component={Login}
options={{ headerShown: false }}
/>
<Stack.Screen
name="SignUp"
component={SignUp}
options={{ headerShown: false }}
/>
<Stack.Screen name="Home" component={Home} />
<Stack.Screen name="Friends" component={Friends} />
<Stack.Screen name="Chats" component={Chats} />
<Stack.Screen name="ChatMessage" component={ChatMessage} />
</Stack.Navigator>
</NavigationContainer>
);
};
export default stackNavigator;
const styles = StyleSheet.create({});