Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import { Platform } from 'react-native';
- import {
- createStore,
- applyMiddleware,
- compose
- } from 'redux';
- import devTools from 'remote-redux-devtools';
- import promise from 'redux-promise';
- import thunk from 'redux-thunk';
- import logger from 'redux-logger';
- import RootReducer from './Reducers';
- const middleware = applyMiddleware(thunk, promise, logger);
- const Store = createStore(
- RootReducer,
- compose(
- middleware,
- devTools({
- name: Platform.OS,
- hostname: 'localhost',
- port: 5678
- }),
- )
- );
- export default Store;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement