-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.js
More file actions
39 lines (38 loc) · 955 Bytes
/
App.js
File metadata and controls
39 lines (38 loc) · 955 Bytes
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
import Signup from "./screens/signup/Signup";
import { YellowBox } from "react-native";
import { createSwitchNavigator, createAppContainer } from "react-navigation";
import Demo from "./screens/demo";
import Demo1 from "./screens/demo1";
import Bar from "./screens/bar";
import Main from "./screens/main";
import Pic from "./screens/pic";
import Profile from "./screens/profile/index";
import Entry from "./screens/ent";
import Search from "./screens/search";
import _ from "lodash";
console.disableYellowBox = true;
YellowBox.ignoreWarnings(["Setting a timer"]);
const _console = _.clone(console);
console.warn = (message) => {
if (message.indexOf("Setting a timer") <= -1) {
_console.warn(message);
}
};
export default createAppContainer(
createSwitchNavigator(
{
Signup,
Demo,
Demo1,
Pic,
Search,
Profile,
Bar,
Main,
Entry,
},
{
initialRouteName: "Entry",
}
)
);