腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
圈层
工具
MCP广场
文章/答案/技术大牛
搜索
搜索
关闭
发布
搜索
关闭
文章
问答
(3222)
视频
开发者手册
清单
用户
专栏
沙龙
全部问答
原创问答
Stack Exchange问答
更多筛选
回答情况:
全部
有回答
回答已采纳
提问时间:
不限
一周内
一月内
三月内
一年内
问题标签:
未找到与 相关的标签
筛选
重置
11
回答
NativeModule:
AsyncStorage
为空,带有@RNC/
AsyncStorage
我一直在使用常规的旧
AsyncStorage
,从react-native导入,一切都很好。在查找如何模拟
AsyncStorage
进行测试时,我发现react-native-community/react-native-async-storage有它自己的模拟内置。当我运行我的应用程序时,我收到了一个错误(我自己重新输入了这个错误,请原谅一些省略): [@RNC/
AsyncStorage
]: NativeModule:
AsyncStorage
is null.(我将继续使用来自react-native的
浏览 0
提问于2019-05-08
得票数 26
2
回答
使用API和
AsyncStorage
数据构建
AsyncStorage
要构建我的react本机ListView,我需要从网络APi和
AsyncStorage
(比如AppCache)两个地方提取数据。来自
AsyncStorage
的数据可能存在,也可能不存在,但它需要以任何方式返回某些内容(例如,“未找到”) 以下是当前版本的要点,除了检索cachedOn date () 外,我认为这是秘密酱汁的去处
浏览 0
提问于2015-10-29
得票数 3
回答已采纳
2
回答
AsyncStorage
行为
我偶然发现了
AsyncStorage
的一种奇怪的行为,我无法把头绕在头上,我会感激任何人能向我解释幕后发生了什么(即失败的案例和原因)。下面是我正在研究的代码: let _this = this; } return state;} 然而,在我第二次重新加载应用程序时,即使我一次又一次地尝试登录,<e
浏览 3
修改于2018-05-04
得票数 0
回答已采纳
1
回答
错误:[@RNC/
AsyncStorage
]:NativeModule:
AsyncStorage
为null
我安装了
AsyncStorage
@react-native-async-storage/async-storage并在我的应用程序中使用它,如下面的代码所示。import
AsyncStorage
from '@react-native-async-storage/async-storage'
浏览 29
提问于2022-05-17
得票数 0
3
回答
TypeError:未定义不是对象(计算'_
asyncStorage
.
AsyncStorage
.setItem')
版本:问题:
AsyncStorage
.getItem('u
浏览 0
修改于2020-10-13
得票数 13
回答已采纳
1
回答
在React本机中设置来自
AsyncStorage
的
AsyncStorage
值
我已成功地将我的电子邮件和密码值存储在
AsyncStorage
in ReactNative中。_storeRememberME=async()=>{ await
AsyncStorage
.setIt
浏览 0
修改于2018-08-13
得票数 2
回答已采纳
2
回答
AsyncStorage
不工作
AsyncStorage
不工作。它不会保存,也不会注册。请帮帮我。if (this.props.zamqiDetay == 1) {
AsyncStorage
.setItem('loover', 'sadfasd');渲染:
AsyncStorage
.getItem('loover').then((value) =&
浏览 0
修改于2018-01-18
得票数 0
1
回答
AsyncStorage
:搜索值
我在
asyncStorage
中有一个名为
asyncStorage
的表,可以用来保存多个users详细信息(也就是说,多个用户只使用一部手机就可以登录到应用程序中)。我正沿着这条路线思考,但由于使用 //function to get the value from
AsyncStora
浏览 0
提问于2020-10-26
得票数 2
回答已采纳
1
回答
AsyncStorage
Done()调用
我想知道在
AsyncStorage
调用后做了什么,我能在catch()之后调用它吗?如果我不调用done()会发生什么?
AsyncStorage
.getItem('vehicle') .done();
浏览 1
修改于2017-10-12
得票数 0
3
回答
AsyncStorage
获取项
如何在“
AsyncStorage
”中获取componentDidMount项,这是我的代码componentDidMount() {
AsyncStorage
.getItem('customer_id
浏览 5
提问于2017-10-26
得票数 2
回答已采纳
4
回答
AsyncStorage
安全吗?
我应该使用
AsyncStorage
吗?(我正在使用RN v0.28)
浏览 2
修改于2016-07-15
得票数 8
1
回答
AsyncStorage
不能正常工作
我在组件的构造函数中添加了
AsyncStorage
的setItem函数,然后使用getItem函数创建了一个函数来获取它的值,但它返回了空。我是不是遗漏了什么?下面是我的代码: super(props);
AsyncStorage
.setItem('testKey', 'Icatch (error) { // Error sav
浏览 0
提问于2018-02-14
得票数 0
回答已采纳
2
回答
反应中的
AsyncStorage
componentDidMount(){
AsyncStorage
.getItem('token') console.log(res) 我有componentDidMount和console.log和
AsyncStorage
.getItem但问题是,
AsyncStorage
.getItem没有工作
浏览 1
提问于2018-09-10
得票数 0
回答已采纳
1
回答
Asyncstorage
React Native
如何在我使用异步存储选择不同的id后管理多个id? 我的问题是,我目前使用setitem来设置我的id,并在我的应用程序的整个部分中获取该id,但是,我也想设置和获取不同的id,并删除旧的id,有什么建议做得最好吗,谢谢??
浏览 8
提问于2020-04-22
得票数 0
回答已采纳
1
回答
React原生
AsyncStorage
我不知道如何使
AsyncStorage
工作。我使用的是反应本机路由器流量。static async saveUtenteLoggato(value) { await
AsyncStorage
.setItem("@UtenteLoggato",console.log(error.message); } try {
浏览 0
修改于2019-06-20
得票数 1
回答已采纳
1
回答
AsyncStorage
创造时间
因此,我在我的应用程序中存储数据我只是想知道我将如何存储这个项目添加的时间?我想添加一个功能,它显示了多久前状态是发布的。
浏览 1
提问于2017-04-24
得票数 1
回答已采纳
1
回答
React原生
AsyncStorage
承诺
因此,我现在使用react原生中的
AsyncStorage
来存储使用axios发出请求的api。当我调用
AsyncStorage
来获取一个item时,我得到的是Object对象而不是键。import {
AsyncStorage
} from 'react-native'; constructor(){} const token = await
AsyncStorage
.getItem('
浏览 18
提问于2019-07-15
得票数 1
2
回答
AsyncStorage
的替代方案
== props.id);storeInLevel1 ->从
AsyncStorage
获取Level1状态,并将附加信息保存到
AsyncStorage
问题是它是异步的,并不总是正常工作。
浏览 0
提问于2020-03-14
得票数 3
2
回答
AsyncStorage
不工作-反应本机
我想使用
AsyncStorage
作为set并获取值,但它在componentDidMount内部不起作用 }); function getData(key) { const value =
AsyncStorage
.getItemreturn value throw err
浏览 0
提问于2018-08-07
得票数 2
1
回答
AsyncStorage
React本机不工作
AsyncStorage
.setItem('@MyStorage:Token', res.data.accessToken)} try { const value = await
AsyncStorage
.getItem('
浏览 0
修改于2018-07-11
得票数 0
第 2 页
第 3 页
第 4 页
第 5 页
第 6 页
第 7 页
第 8 页
第 9 页
第 10 页
第 11 页
点击加载更多
领券