-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.js
More file actions
40 lines (35 loc) · 1 KB
/
index.js
File metadata and controls
40 lines (35 loc) · 1 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
import React from "react";
import { AppRegistry, StatusBar } from "react-native";
import { Provider } from "react-redux";
import { createStackNavigator, createAppContainer } from "react-navigation";
import store from "./src/store";
import route from "services/route";
console.disableYellowBox = true;
console.ignoredYellowBox = ["Warning: ReactNative.createElement"];
const Navigator = createStackNavigator(
{
Gallery: { screen: require("components/gallery").default },
FullView: { screen: require("components/full-view").default }
},
{
initialRouteName: "Gallery",
defaultNavigationOptions: {
header: null
},
navigationOptions: {
gesturesEnabled: false
}
}
);
const Photoes = createAppContainer(Navigator);
const App = () => (
<Provider store={store}>
<StatusBar
barStyle="dark-content"
translucent={true}
backgroundColor={"transparent"}
/>
<Photoes ref={route.setRoot} />
</Provider>
);
AppRegistry.registerComponent("photoes", () => App);