Storage.getItem
Feature description
Retrieves string data from the local storage of a mobile app. Use it when the data needs to persist even if the app is closed and restarted. If there is no value nullreturns.
Type
Storage.getItem(key: string): Promise<string | null>;Params
key: string— This is the key used to retrieve the value.
Response
If there is no value nullreturns.
Example code
JavaScript
import { Storage } from "@apps-in-toss/web-framework";
const value = await Storage.getItem("my-key");
console.log(value); // 'value' or nullWas this helpful?