Closed kenhuang closed 5 years ago
What does it use instead of randomBytes in this case?
Last time I checked, RN didn't have any random number generator, is this correct? People used https://github.com/ReactWindows/react-native-randombytes or something else -- will setting "crypto": false
make it still possible to use those (e.g. when people have babel replacements for it)?
We are using react-native-securerandom, https://github.com/rh389/react-native-securerandom
For our usage we don’t use the crypto related functions, fix above just try to avoid RN package manage blowout on start.
OK, got it. Merged and published.
Reference
@stablelib/random
in RN app result unable to resolve modulecrypto
error.A possible fix is to add the following to package.json, this should allow RN env bypass
crypto
package.