不支持crypto.getRandomValues() [英] crypto.getRandomValues() not supported
本文介绍了不支持crypto.getRandomValues()的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当我尝试使用react-native-qrcode-generator
我在反应管理的工作流中使用react-native.事实是它可以在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.
我用以下方法解决了它:
I solved it with:
- 卸载现有的
npm uninstall react-native-webview
- 改为使用
expo install react-native-webview
.
- Uninstall the existing one
npm uninstall react-native-webview
- Use
expo install react-native-webview
instead.
这篇关于不支持crypto.getRandomValues()的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文