Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/maxgfr/huge-async-storage

A wrapper of async-storage that allows you to store huge data on react-native
https://github.com/maxgfr/huge-async-storage

async-storage asyncstorage huge-data local-storage react-native react-native-async-storage storage typescript wrapper

Last synced: 2 days ago
JSON representation

A wrapper of async-storage that allows you to store huge data on react-native

Awesome Lists containing this project

README

        

# huge-async-storage

A wrapper of AsyncStorage that allows you to store huge data on [react-native](https://reactnative.dev/).

## Installation

```sh
yarn add huge-async-storage
```

## Usage

```tsx
import {storeAsync, getAsync, removeAsync} from "huge-async-storage";

.....

await storeAsync(`value1`, {value: Array(1000000).fill(1)}); // store huge data
const value1 = await getAsync(`value1`); // to get the value by key
await removeAsync(`value1`); // to remove the value
```