首页 > TAG信息列表 > AsyncStorage
2022-08-05 [TypeError: undefined is not an object (evaluating '_asyncStorage.AsyncStorage.setIt
前言:使用AsyncStorage来设置本地缓存 引入: import { AsyncStorage } from "@react-native-community/async-storage"; 使用: await AsyncStorage.setItem('user_img', image.path); 报错: [TypeError: undefined is not an object (evaluating '_asyncStorage.