-
Notifications
You must be signed in to change notification settings - Fork 1
/
App.js
34 lines (28 loc) · 831 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
import React, { Component } from 'react'
import { Provider, connect } from 'react-redux'
import { AppRegistry, StatusBar } from 'react-native'
import { createStore, applyMiddleware, compose } from 'redux'
import thunkMiddleware from 'redux-thunk'
import logger from 'redux-logger'
import AppContainer from './src/components/AppContainer'
import reducer from './src/reducers'
function configureStore(initialState) {
const enhancer = compose(
applyMiddleware(
thunkMiddleware,
// logger,
)
)
return createStore(reducer, initialState, enhancer)
}
export const store = configureStore({})
export default class App extends Component {
render() {
return (
<Provider store={store}>
<AppContainer />
</Provider>
)
}
}
AppRegistry.registerComponent('textadventure', () => App)