mirror of
https://github.com/status-im/react-native-testfairy.git
synced 2026-08-27 18:01:15 +00:00
23 lines
496 B
JavaScript
23 lines
496 B
JavaScript
'use strict';
|
|
|
|
import React from 'react-native'
|
|
import { createStore, applyMiddleware } from 'redux'
|
|
import { Provider } from 'react-redux'
|
|
import thunk from 'redux-thunk'
|
|
|
|
import reducers from './reducers'
|
|
import Main from './main'
|
|
|
|
const createStoreWithMW = applyMiddleware(thunk)(createStore)
|
|
const store = createStoreWithMW(reducers)
|
|
|
|
module.exports = React.createClass({
|
|
render: function () {
|
|
return (
|
|
<Provider store={store}>
|
|
<Main />
|
|
</Provider>
|
|
);
|
|
}
|
|
});
|