tradle / rn-nodeify

hack to allow react-native projects to use node core modules, and npm modules that use them
MIT License
614 stars 114 forks source link

Your Browser doesn't support window.crypto on RN #101

Open MohamedAhmed122 opened 3 years ago

MohamedAhmed122 commented 3 years ago

I am trying to use web3.js in RN I followed the docs , but I am facing this error

Screenshot 2021-04-07 at 16 36 42

so I tried to uncomment require('crypto'); in the shim but I am facing different error

Screenshot 2021-04-07 at 16 40 55

Any clues what is the issue or maybe how to resolved ? @mvayngrib

vuongpsht commented 3 years ago

use require('crypto-browserify') instead