-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
executable file
·55 lines (54 loc) · 1.63 KB
/
index.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
/**
* @format
*/
import { Navigation } from "react-native-navigation";
import Home from "./screens/home";
import Sign from "./screens/second";
import Patient from "./screens/patient";
import Create from "./screens/create";
import Login from "./screens/Login";
import { Provider } from "react-redux";
import { store } from "./store";
//import Second from "./screens/second";
console.disableYellowBox = true;
Navigation.registerComponentWithRedux("Home", () => Home, Provider, store);
Navigation.registerComponentWithRedux("Sign", () => Sign, Provider, store);
Navigation.registerComponentWithRedux(
"Patient",
() => Patient,
Provider,
store
);
Navigation.registerComponentWithRedux("Login", () => Login, Provider, store);
Navigation.registerComponentWithRedux("Create", () => Create, Provider, store);
Navigation.events().registerAppLaunchedListener(() => {
Navigation.setDefaultOptions({
topBar: {
visible: false,
drawBehind: true,
animate: false,
_height: 0
}
});
Navigation.setRoot({
root: {
stack: {
id: "Appstack",
children: [
{
component: {
name: "Home",
options: {
topBar: {
title: {
text: "iCare Flow"
}
}
}
}
}
]
}
}
});
});