-
Notifications
You must be signed in to change notification settings - Fork 150
/
Copy pathApp.js
23 lines (20 loc) · 809 Bytes
/
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
import React from "react";
import HomeScreen from "./components/Home";
import FeedPage from "./components/Feed";
import ChatPage from "./components/Chat";
import { NavigationContainer } from "@react-navigation/native";
import { createNativeStackNavigator } from "@react-navigation/native-stack";
import { StatusBar } from "expo-status-bar";
const NativeStack = createNativeStackNavigator();
export default function App() {
return (
<NavigationContainer>
<StatusBar style="dark" />
<NativeStack.Navigator initialRouteName="Home">
<NativeStack.Screen name="Home" component={HomeScreen} />
<NativeStack.Screen name="Chat" component={ChatPage} />
<NativeStack.Screen name="Feed" component={FeedPage} />
</NativeStack.Navigator>
</NavigationContainer>
);
}