Skip to content

Instantly share code, notes, and snippets.

@RafalWilinski
Last active July 8, 2017 16:54
Show Gist options
  • Save RafalWilinski/e7a0176b3597b30d235fbe6eaaa00d67 to your computer and use it in GitHub Desktop.
Save RafalWilinski/e7a0176b3597b30d235fbe6eaaa00d67 to your computer and use it in GitHub Desktop.
How to Fix `redux-api-middleware` + React Native
1. Go to `/node_modules/redux-api-middleware`
2. Open `package.json` and add `"react-native": "fetch-npm-react-native.js",` after `main` key
3. Run `echo "module.exports = this;" > fetch-npm-react-native.js`
4. Restart RN server
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment