react-native - 我们可以在同一个项目中使用两个 React Native 的异步存储吗?
问题描述
首先我尝试了一个 Async-storage data ,它正在工作。问题出在我以其他形式提供的其他异步存储数据上。它不起作用。有人可以帮我解决这个问题吗?
数据:-
StoreImageData = async () => {
const Obj = "save"
test.push(Obj)
Alert.alert(JSON.stringify(test))
try {
await AsyncStorage.setItem('@Store', JSON.stringify(test))
this.props.navigation.navigate('CarView');
Alert.alert('Saved', 'Successful');
} catch (e) {
// saving error
}
}
解决方案
推荐阅读
- java - 在 junit 4.13 中使用 Parameterized.Parameter
- php - Laravel - 如何执行商店资源?
- algorithm - 高效的基于比较的集合式数据结构,用于插入和查找但不删除
- python - R中的lapply函数参数
- python - 使用 Pygame 事件关闭moviepy VideoFileClip
- java - 用java创建正确的表达式
- javascript - 不显示角度完整日历事件
- azure - FAILED: HiveAccessControlException Permission denied: Principal [name=user1, type=USER] 没有以下操作 CREATETABLE 的权限
- python - 有没有办法将交互式动画从 python 插入到 powerpoint?
- html - 如何在 Angular 中渲染后端数据