首页 > 解决方案 > TypeError: undefined is not an object (evalating '_globalThis.crypto.subtle.digest') react-native ios

问题描述

当我使用事务函数时,我的应用程序中出现此错误 [TypeError: undefined is not an object (evalating '_globalThis.crypto.subtle.digest')]:-

var fromTokenAccount = await myToken.getOrCreateAssociatedAccountInfo(
      fromWallet.publicKey) 

此功能使用npm i react -native-crypto ,当我处于调试模式时不会发生这种情况

标签: iosreact-native

解决方案


推荐阅读