-
Notifications
You must be signed in to change notification settings - Fork 2
/
Root.js
83 lines (80 loc) · 2.42 KB
/
Root.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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
import React from "react";
import { Root } from "native-base";
//import { StackNavigator, DrawerNavigator } from "react-navigation";
import {createAppContainer } from "react-navigation";
import { createStackNavigator } from 'react-navigation-stack';
import { createDrawerNavigator } from 'react-navigation-drawer';
import Menu from "./src/screens/Menu";
import Wino from "./Wino";
import Author from "./src/screens/Author";
import Reciting from "./src/screens/Reciting";
import Tafsir from "./src/screens/Tafsir";
import BookMarks from "./src/screens/BookMarks";
import Options from "./src/screens/Options";
import Khitma from "./src/screens/Khitma";
//import Tray from "./src/screens/Tray";
//import Alarm from "./src/screens/Alarm";
import Store from "./src/screens/Store";
import StoreItem from "./src/screens/StoreItem";
import SearchSmart from "./src/screens/SearchSmart";
import Suras from "./src/screens/Suras";
//import Cloud from "./src/screens/Cloud";
//import Kids from "./src/screens/Kids";
//import Header from "./screens/Header/";
///
//import SideBar from "./src/screens/SideBar";
const Drawer = createDrawerNavigator(
{
BookMarks: { screen: BookMarks },
Home: { screen: Menu },
Tafsir: { screen: Tafsir },
Wino: { screen: Wino },
Khitma: { screen: Khitma },
Author: { screen: Author },
Reciting: { screen: Reciting },
//Alarm: { screen: Alarm },
Store: { screen: Store },
StoreItem: { screen: StoreItem },
//Cloud: { screen: Cloud },
},
{
initialRouteName: "Wino",
contentOptions: {
activeTintColor: "#e91e63",
},
contentComponent: (props) => <Menu {...props} />,
}
);
//
const AppNavigator = createStackNavigator(
{
Drawer: { screen: Drawer },
BookMarks: { screen: BookMarks },
Home: { screen: Menu },
Tafsir: { screen: Tafsir },
Wino: { screen: Wino },
SearchSmart: { screen: SearchSmart },
Suras: { screen: Suras },
//Tray: { screen: Tray },
Options: { screen: Options },
Khitma: { screen: Khitma },
Author: { screen: Author },
Reciting: { screen: Reciting },
//Alarm: { screen: Alarm },
Store: { screen: Store },
StoreItem: { screen: StoreItem },
//Cloud: { screen: Cloud },
// Kids:{screen:Kids},
},
{
initialRouteName: "Drawer",
headerMode: "none",
mode: "modal",
}
);
const AppContainer = createAppContainer(AppNavigator);
export default () => (
<Root>
<AppContainer />
</Root>
);