Skip to content

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

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wanted :octocat:v2Related to v2 async storage version

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions