-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.js
More file actions
37 lines (26 loc) · 1.22 KB
/
Copy pathApp.js
File metadata and controls
37 lines (26 loc) · 1.22 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 { NavigationContainer } from "@react-navigation/native";
import React from "react";
import Home from "./screens/Home/"
import { createDrawerNavigator } from "@react-navigation/drawer";
import About from "./screens/About"
import SideMenu from "./screens/SideMenu";
import Settings from "./screens/Settings"
import General from "./screens/General"
import Backup from "./screens/Backup"
import Notifications from "./screens/Notifications"
import firebase from "./utils/firebase.js"
const Drawer = createDrawerNavigator();
export default function App(){
return(
<NavigationContainer>
<Drawer.Navigator initialRouteName={Home} drawerContent={props => <SideMenu {...props}/>} screenOptions={{ headerShown:false,drawerType:'back',overlayColor:'#00000000'}} initialRouteName="Home">
<Drawer.Screen name="Home" component={Home} />
<Drawer.Screen name="About" component={About} />
<Drawer.Screen name="Settings" component={Settings} />
<Drawer.Screen name="General" component={General} />
<Drawer.Screen name="Notifications" component={Notifications} />
<Drawer.Screen name="Backup" component={Backup}/>
</Drawer.Navigator>
</NavigationContainer>
)
}