handlerSet = async () => {
await AsyncStorage.setItem("user", "你好");
};
handlerGet = async () => {
const str = await AsyncStorage.getItem("user");
ToastAndroid.show(str, ToastAndroid.SHORT);
};
handlerClear = async () => {
await AsyncStorage.clear();
};
handlerRemove = async () => {
await AsyncStorage.removeItem("user");
};
网友评论