不支持 crypto.getRandomValues() [英] crypto.getRandomValues() not supported
本文介绍了不支持 crypto.getRandomValues()的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当我尝试使用 react-native-qrcode-generator
生成二维码时,我使用 npm react-native-webview@9.0.1
收到此错误
I'm getting this error with npm react-native-webview@9.0.1
when I try to generate a QR code with react-native-qrcode-generator
我将 react-native 与 expo 管理的工作流程一起使用.问题是它适用于 iOS,而我只在 Android 上得到错误
I'm using react-native with an expo managed workflow. And the thing is it works on iOS, and i only get the error on Android
我自己搜索了一个解决方案,并尝试安装 react-native-get-random-values
但这也没有用.
I searched for a solution myself and I tried installing react-native-get-random-values
but that also didn't work.
有什么想法吗?
推荐答案
我刚刚在android上遇到了同样的问题.在 iOS 上运行良好.
I just had the same issue on android. Works fine on iOS.
我解决了:
- 卸载已有的
npm uninstall react-native-webview
- 改用
expo install react-native-webview
.
这篇关于不支持 crypto.getRandomValues()的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文