-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathApp.js
43 lines (37 loc) · 992 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
34
35
36
37
38
39
40
41
42
43
import React, {Component} from 'react';
import {StackNavigator} from 'react-navigation';
import MenuPage from "./src/ui/pages/menu-page";
import QuestionPage from "./src/ui/pages/question-page";
import ResultPage from "./src/ui/pages/result-page";
import {Provider} from "react-redux";
import store from "./src/redux/store";
import colors from "./src/utils/colors";
console.disableYellowBox = true;
const StackNav = StackNavigator({
Menu: {
screen: MenuPage, navigationOptions: {
header: null
}
},
Questions: {
screen: QuestionPage,
navigationOptions: {
headerStyle: {
backgroundColor: colors.header
},
headerTintColor: colors.white,
}
},
ResultPage: {
screen: ResultPage,
navigationOptions: {
header: null
}
}
});
const App = () => (
<Provider store={store}>
<StackNav/>
</Provider>
);
export default App;