身份的认证1

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");

  };

你可能感兴趣的:(身份的认证1)