I am trying to include remote-redux-devtools in a react-native app, but I am consistently getting the below error in the app:
Actions must be plain objects. Use custom middleware for async actions.
This error does not occur when not using composeWithDevTools
Below are the concerned files:
index.android.js
import React, { Component } from 'react'
import { AppRegistry, View } from 'react-native'
import { createStore, applyMiddleware } from 'redux'
import thunk from 'redux-thunk'
import { Provider } from 'react-redux'
import composeWithDevTools from 'remote-redux-devtools'
// Import the reducer and create a store
import { reducer } from './app/reducers/postsRedux'
// Add the thunk middleware to our store
const store = createStore(reducer, composeWithDevTools(applyMiddleware(thunk)))
// Import the App container component
import App from './app/App'
// Pass the store into the Provider
const AppWithStore = () => (
<Provider store={store}>
<App />
</Provider>
)
AppRegistry.registerComponent('SocializeApp', () => AppWithStore)
I am trying to include remote-redux-devtools in a react-native app, but I am consistently getting the below error in the app:
Actions must be plain objects. Use custom middleware for async actions.
This error does not occur when not using
composeWithDevTools
Below are the concerned files:
index.android.js
App.js
postsRedux.js