-
Notifications
You must be signed in to change notification settings - Fork 195
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
React Native support #111
Comments
@stephenmathieson import { createStore, applyMiddleware, combineReducers } from 'redux';
import { apiMiddlewareCreator } from '@yasaichi/redux-api-middleware';
import reducers from './reducers';
const apiMiddleware = apiMiddlewareCreator(fetch);
const createStoreWithMiddleware = applyMiddleware(apiMiddleware)(createStore);
const reducer = combineReducers(reducers);
export default function configureStore(initialState) {
return createStoreWithMiddleware(reducer, initialState);
} How would you like to try it? (Sorry that currently it works only on v0.41.0-rc.0 or later 🙇) |
@yasaichi I ended up finishing my RN project and don't have an immediate need for this. I will check it out in the next few days tho!! |
Thanks @yasaichi, I'm now using your fork and everything seems to be working correctly. |
The |
Any plans to add support? I think all we need is #58 to land.
The text was updated successfully, but these errors were encountered: