📜  AsyncStorage.getItem undefined 不是对象 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:03:14.508000             🧑  作者: Mango

代码示例1
/*
Here's how to use the correct method for importing.

import AsyncStorage from '@react-native-community/async-storage';
This module is not exported as a react-native, so it must not have a square bracket.

Use in react-native module
*/

import { AsyncStorage } from 'react-native';