-
Notifications
You must be signed in to change notification settings - Fork 1
/
App.js
33 lines (30 loc) · 902 Bytes
/
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
console.disableYellowBox = true;
import React from "react";
import { createStackNavigator, createAppContainer } from "react-navigation";
import { Provider } from "react-redux";
import configureStore from "./src/store/store";
const store = configureStore();
import HomeScreen from "./src/screen/HomeScreen";
import FullListScreen from "./src/screen/FullListScreen";
import ItemDetailScreen from "./src/screen/ItemDetailScreen";
let AppStack = createStackNavigator(
{
Home: HomeScreen,
FullList: FullListScreen,
ItemDetail: ItemDetailScreen
},
{
initialRouteName: "Home",
headerMode: "none"
}
);
let AppContainer = createAppContainer(AppStack);
export default class App extends React.PureComponent {
render() {
return (
<Provider store={store}>
<AppContainer />
</Provider>
);
}
}