【发布时间】:2023-02-20 03:06:23
【问题描述】:
我正在开发 ios 和 web 应用程序。为了使用加密存储来存储凭据,在网络中我现在使用本地存储。 但是在编译网络应用程序时会抛出错误。
rnw_blogpost.bundle.js:5540 Uncaught Error: RNEncryptedStorage is
undefined at eval (EncryptedStorage.js:1:862) at
Object../node_modules/react-native-encrypted-storage/lib/module/EncryptedStorage.js (rnw_blogpost.bundle.js:1766:1) at __webpack_require__
(rnw_blogpost.bundle.js:5537:33) at fn
(rnw_blogpost.bundle.js:5736:21) at eval (index.js:1:389) at
Object../node_modules/react-native-encrypted-storage/lib/module/index.js
(rnw_blogpost.bundle.js:1776:1) at __webpack_require__
(rnw_blogpost.bundle.js:5537:33) at fn
(rnw_blogpost.bundle.js:5736:21) at eval (encrypted-storage.ts:1:565)
at Object../src/util/encrypted-storage.ts
(rnw_blogpost.bundle.js:4098:1)
有什么办法,在网络上我可以处理它。
【问题讨论】:
标签: ios react-native react-native-web