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

    Type Alias StorageErrorCode

    StorageErrorCode:
        | "INVALID_KEY"
        | "INVALID_OPTION"
        | "VALUE_TOO_LARGE"
        | "UNSERIALIZABLE"
        | "VALIDATION_FAILED"
        | "CORRUPT_DATA"
        | "INCOMPATIBLE_VERSION"
        | "EXPIRED"
        | "UNSUPPORTED"
        | "DRIVER_ERROR"

    Why an operation failed.

    • INVALID_KEY: the key or namespace is empty, too long or contains a control character.
    • INVALID_OPTION: an option is out of range, for example a TTL of NaN or a version of 1.5.
    • VALUE_TOO_LARGE: the encoded value is larger than maxValueBytes.
    • UNSERIALIZABLE: the value contains something that cannot be stored, such as a function, a class instance, a circular reference or an invalid Date.
    • VALIDATION_FAILED: the schema rejected the value.
    • CORRUPT_DATA: the stored text is not a record this library wrote and no legacy reader accepted it.
    • INCOMPATIBLE_VERSION: the stored record was written by a newer schema version, or a migration step is missing.
    • EXPIRED: getOrCreateSecret found a stored secret whose lifetime has passed; it is left in place rather than replaced.
    • UNSUPPORTED: the driver cannot do this, for example list keys.
    • DRIVER_ERROR: the underlying storage threw; the original error is in cause.