身份的认证1
2018-11-08 本文已影响0人
糖豆萌萌哒
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");
};