-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.ios.js
34 lines (25 loc) · 858 Bytes
/
index.ios.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 {AppRegistry} from 'react-native';
import React, { Component } from 'react';
import { Provider } from 'react-redux';
import { createStore, applyMiddleware, combineReduxers, compose } from 'redux';
import thunkMiddleware from 'redux-thunk';
import { createLogger } from 'redux-logger';
import reducer from './app/reducers';
import AppContainer from './app/Components/AppContainer'
const loggerMiddleware = createLogger( { predicate: (getState, action) => __DEV__ });
function configureStore(initialState){
const enhancer = compose(
applyMiddleware(
thunkMiddleware,
loggerMiddleware
),
);
return createStore(reducer, initialState, enhancer);
}
const store = configureStore({});
const App = () => (
<Provider store={store}>
<AppContainer />
</Provider>
)
AppRegistry.registerComponent('EelamSongs', () => App);