React Native Storage - v2.0.0
    Preparing search index...

    Interface ItemSnapshot<T>

    The state of an item at one moment; the same object is returned until something changes.

    interface ItemSnapshot<T> {
        status: "error" | "loading" | "ready";
        value: T;
        error: StorageError | undefined;
        expiresAt: number | undefined;
    }

    Type Parameters

    • T
    Index
    status: "error" | "loading" | "ready"

    loading until an asynchronous driver answers; error when the value could not be read.

    value: T

    The stored value, or the default value while loading, after an error or when absent.

    error: StorageError | undefined
    expiresAt: number | undefined

    When the stored value expires, in milliseconds since the epoch.