tradle / rn-nodeify

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

Conditionally require crypto module in shim.js #56

Closed jd20 closed 6 years ago

jd20 commented 6 years ago

Fixes the issue discussed here: https://github.com/tradle/react-native-crypto/pull/22. Basically, sometimes we need to require('crypto') before anything else, and shim.js is the best place to do that.

jd20 commented 6 years ago

Having some rebase issues with my fork, let me re-create the branch properly.