I\'m working on implementing the twilio
package into my react-native project and when I require it in my file the project wont load and I\'m seeing the followin
You can use the rn-nodeify
module to get crypto
on react-native.
Add rn-nodeify
to your devDependencies
in package.json
:
"devDependencies": {
"rn-nodeify": "^6.0.1"
}
Add the following to the scripts
section of the same file:
"scripts": {
…
"postinstall": "node_modules/.bin/rn-nodeify --install crypto --hack"
}
Be aware that rn-nodeify will modify your package.json.
More information available here: https://www.npmjs.com/package/rn-nodeify