Closed nomoreboredom closed 6 years ago
Also as it seems monolithlabs/rn-nodeify fork has browserify-sign and such in cmd file, however this repo does not
@nomoreboredom good catch! We forgot to return the input array in getRandomValues. See this PR https://github.com/mvayngrib/react-native-crypto/pull/20/files
Thanks a lot for quick fix!! It works for me now :)
@nomoreboredom great!
Hi there,
Thanks for the great repos. I am using your solution to run node core modules on a react native app, and this is my postinstall script
./node_modules/.bin/rn-nodeify --install --hack "crypto,stream,process,vm,process,buffer,url,assert,events,querystring"
and my shim looks like this:
And on my app, I have a call to eth-lib, which calls this func:
which returns to me '''typeerror undefined is not an object rnd[i]'''
Any idea what may be causing this? FYI, If I turn debug mode on, it works as expected since the window object must be available.