-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.js
82 lines (69 loc) · 1.47 KB
/
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
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
import { Navigation } from 'react-native-navigation';
import { Provider } from 'react-redux';
import ConfigureStore from './src/components/Store/config';
import Login from './src/components/views/Login';
import Home from './src/components/views/Home';
import AddPost from './src/components/views/Admin/AddPost';
import NotAllowed from './src/components/views/Admin/AddPost/notallowed';
import SideDrawerComponent from './src/components/views/SideDrawer';
import UserPosts from './src/components/views/Admin/UserPosts';
import Article from './src/components/views/Article';
const store = ConfigureStore();
Navigation.registerComponent(
"sellitApp.Login",
() =>
Login,
store,
Provider
);
Navigation.registerComponent(
"sellitApp.Home",
() =>
Home,
store,
Provider
);
Navigation.registerComponent(
"sellitApp.AddPost",
() =>
AddPost,
store,
Provider
);
Navigation.registerComponent(
"sellitApp.SideDrawerComponent",
() =>
SideDrawerComponent,
store,
Provider
);
Navigation.registerComponent(
"sellitApp.UserPosts",
() =>
UserPosts,
store,
Provider
);
Navigation.registerComponent(
"sellitApp.Article",
() =>
Article,
store,
Provider
);
Navigation.registerComponent(
"sellitApp.NotAllowed",
() =>
NotAllowed,
store,
Provider
);
export default () => Navigation.startSingleScreenApp( {
screen: {
screen: "sellitApp.Login",
title: "Login",
navigatorStyle: {
navBarHidden: true
}
}
})