Skip to content

Commit

Permalink
hotfix: add thunk middleware to ios too
Browse files Browse the repository at this point in the history
  • Loading branch information
javorosas committed Aug 14, 2016
1 parent d4f71a2 commit 515853e
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions index.ios.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
import thunkMiddleware from 'redux-thunk';
import createLogger from 'redux-logger';
import React, { Component } from 'react';
import { AppRegistry } from 'react-native';
import { Provider } from 'react-redux';
import { createStore } from 'redux';
import { createStore, applyMiddleware } from 'redux';
import App from './src/app/App';
import tasks from './src/app/reducer';

let store = createStore(tasks);
const loggerMiddleware = createLogger();
let store = createStore(tasks, applyMiddleware(
thunkMiddleware,
loggerMiddleware
));

class todub extends Component {
render () {
Expand Down

0 comments on commit 515853e

Please sign in to comment.