-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.js
26 lines (24 loc) · 894 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
import { Router } from "react-native-router-flux";
import React, { Component } from "react";
import { Provider, connect } from "react-redux";
import { createStore, applyMiddleware } from "redux";
import reducers from "./src/redux/reducers";
import AppRouter from "./src/view/Router";
import thunk from "redux-thunk";
import logger from "redux-logger";
import { StyleProvider } from "native-base";
import getTheme from "./native-base-theme/components";
import material from "./native-base-theme/variables/material";
const ConnectedRouter = connect()(Router);
const store = createStore(reducers, applyMiddleware(thunk,logger));
export default class App extends Component {
render() {
return (
<StyleProvider style={getTheme(material)}>
<Provider store={store}>
<ConnectedRouter>{AppRouter}</ConnectedRouter>
</Provider>
</StyleProvider>
);
}
}