gpt4 book ai didi

react-native - 不支持 crypto.getRandomValues()

转载 作者:行者123 更新时间:2023-12-02 00:29:17 26 4
gpt4 key购买 nike

当我尝试使用 react-native-qrcode-generator 生成 QR 码时,我在 npm react-native-webview@9.0.1 中遇到此错误

我正在使用react-native 和expo 管理的工作流程。问题是它可以在 iOS 上运行,而我只在 Android 上收到错误

我自己寻找解决方案,并尝试安装 react-native-get-random-values 但这也不起作用。

有什么想法吗?

最佳答案

react native

Install react-native-get-random-values
Import it before uuid:
import 'react-native-get-random-values';
import { v4 as uuidv4 } from 'uuid';

关于react-native - 不支持 crypto.getRandomValues(),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61169746/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com