Created
September 11, 2016 05:28
-
-
Save ewnd9/1a0d153fcb009aecc147c1bb998b8c23 to your computer and use it in GitHub Desktop.
require stream polyfill in react-native
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
npm install stream --save | |
mkdir node_modules/stream | |
echo "module.exports = require('readable-stream');\n" > node_modules/stream/index.js | |
echo '{ "name": "stream" }' > node_modules/stream/package.json | |
echo '!/node_modules/stream/' >> .gitignore |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment