Skip to content

Retrieve the total size of the data stored in Async Storage #336

Open
@ziyaddin

Description

@ziyaddin

Motivation

In some cases, it is important to know the current total size of the data stored in Async Storage. It would help to predict possible storage issues beforehand due to the storage limit set by React Native authors.

Description

Described in "Motivation" section.

New feature implementation

Possible methods in my mind:

  1. Natively (Android API/iOS API) calculate and retrieve the size;
  2. Iteratively (via JS) calculate the size of all keys and corresponding values and find the sum.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions