svrcekmichal / redux-axios-middleware

Redux middleware for fetching data with axios HTTP client
MIT License
922 stars 96 forks source link

document is not defined when apply in react native #102

Closed goutamsinghase closed 5 years ago

goutamsinghase commented 5 years ago
import { createStore, applyMiddleware } from 'redux';
import rootReducer from './reducers';
const store = createStore(rootReducer, applyMiddleware(axiosMiddleware));
export default store;

It gives error "document is not defined" when axiosMiddleware is used. Please check it with react native app. It is not working.