import React, { Component } from 'react';
import { StyleSheet } from 'react-native';
import { Provider } from 'react-redux';
import { applyMiddleware, createStore } from 'redux';
import createLogger from 'redux-logger';
import thunkMiddleware from 'redux-thunk';

import App from './containers/app';
import reducers from './reducers';
import styles from './styles'

const logger = createLogger({
  colors: { action: false, error: false, nextState: false, prevState: false, title: false },
  duration: true,
  level: 'info',
  predicate: (getState, action) => __DEV__
});

const middleware = applyMiddleware(thunkMiddleware, logger);
const store = createStore(reducers, {}, middleware);

import { loadHistory } from  './statsStorage'
loadHistory(store.dispatch)

export default () => (
  <Provider store={ store }>
    <App />
  </Provider>
);

import React, { Component } from 'react';
import { StyleSheet } from 'react-native';
import { Provider } from 'react-redux';
import { applyMiddleware, createStore } from 'redux';
import { createLogger } from 'redux-logger';
import thunkMiddleware from 'redux-thunk';

import App from './containers/app';
import reducers from './reducers';
import styles from './styles'

const logger = createLogger({
  colors: { action: false, error: false, nextState: false, prevState: false, title: false },
  duration: true,
  level: 'info',
  predicate: (getState, action) => __DEV__
});

const middleware = applyMiddleware(thunkMiddleware, logger);
const store = createStore(reducers, {}, middleware);

import { loadHistory } from  './statsStorage'
loadHistory(store.dispatch)

export default () => (
  <Provider store={ store }>
    <App />
  </Provider>
);

Upgrade redux-logger 2.6.1 -> 3.0.6
Upgrade redux-logger 2.6.1 -> 3.0.6
