maxgfr / huge-async-storage

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

Home Page:https://www.npmjs.com/package/huge-async-storage

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

huge-async-storage

A wrapper of AsyncStorage that allows you to store huge data on react-native.

Installation

yarn add huge-async-storage

Usage

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

About

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

https://www.npmjs.com/package/huge-async-storage


Languages

Language:TypeScript 61.5%Language:JavaScript 38.5%