-
Notifications
You must be signed in to change notification settings - Fork 2
/
App.js
20 lines (18 loc) · 814 Bytes
/
App.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import * as React from "react";
import { NavigationContainer } from "@react-navigation/native";
import { createStackNavigator } from "@react-navigation/stack";
import DrawerNavigator from "./src/navigators/DrawerNavigator";
import LoginPage from "./src/pages/Auth/LoginPage";
import RegistrationPage from "./src/pages/Auth/RegistrationPage";
const StackApp = createStackNavigator();
export default function App() {
return (
<NavigationContainer>
<StackApp.Navigator initialRouteName="Login" screenOptions={{ headerShown: false }}>
<StackApp.Screen name="HomeApp" component={DrawerNavigator} />
<StackApp.Screen name="Login" component={LoginPage} />
<StackApp.Screen name="Register" component={RegistrationPage} />
</StackApp.Navigator>
</NavigationContainer>
);
}