Skip to content

Instantly share code, notes, and snippets.

@incorvia
Created July 15, 2017 02:52
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save incorvia/66e4ff85dce4e8aa58ec24387cd871e6 to your computer and use it in GitHub Desktop.
Save incorvia/66e4ff85dce4e8aa58ec24387cd871e6 to your computer and use it in GitHub Desktop.
Hack File
rn-nodeify -install http --hack
rn-nodeify -install https --hack
rn-nodeify -install crypto --hack
npm install buffer@^5.0.6 --save
sed -i -e "s/this.xhr.send('');/this.xhr.send();/" node_modules/react-native-http/lib/request.js
cp node_modules/socket.io-client/dist/socket.io.js node_modules/socket.io-client
cp config/replaces/constants.js node_modules/node-rsa/src/libs/constants.js
cp config/replaces/NodeRSA.js node_modules/node-rsa/src/NodeRSA.js
cp config/replaces/pkcs1.js node_modules/node-rsa/src/schemes/pkcs1.js
cp config/replaces/io.js node_modules/node-rsa/src/encryptEngines/io.js
cp config/replaces/node12.js node_modules/node-rsa/src/encryptEngines/node12.js
cp config/replaces/package.json node_modules/softap-setup/package.json
rm -rf node_modules/softap-setup/node_modules/node-rsa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment