-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.js
More file actions
42 lines (37 loc) · 1.07 KB
/
index.js
File metadata and controls
42 lines (37 loc) · 1.07 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
38
39
40
41
42
import React from "react";
import { AppRegistry, StatusBar } from "react-native";
import { Provider } from "react-redux";
import { createStackNavigator, createAppContainer } from "react-navigation";
import Wrapper from "containers/wrapper";
import store from "./src/store";
import route from "services/route";
console.disableYellowBox = true;
console.ignoredYellowBox = [
"Warning: ReactNative.createElement",
"Require cycle: node_modules/rn-fetch-blob/index.js"
];
const Navigator = createStackNavigator(
{
Map: { screen: require("components/map").default },
Search: { screen: require("components/search").default }
},
{
initialRouteName: "Map",
defaultNavigationOptions: {
header: null
},
navigationOptions: {
gesturesEnabled: false
}
}
);
const Forecast = createAppContainer(Navigator);
const App = () => (
<Provider store={store}>
<Wrapper>
<StatusBar hidden={true} />
<Forecast ref={navigatorRef => route.setRoot(navigatorRef)} />
</Wrapper>
</Provider>
);
AppRegistry.registerComponent("forecast", () => App);