Skip to content

Cross platform storage for React, built on top of AsyncStorage

Notifications You must be signed in to change notification settings

jmacioszek/async-storage

 
 

Repository files navigation

@callstack/async-storage

Cross platform local storage with React Native - like API.

In order to use it, just import from either web or native:

import AsyncStorage from '@callstack/async-storage';

and call any of the methods available here. The API is 100% compatible, including the errors that can be thrown.

AsyncStorage.setItem('key', 'value')
  .then(() => {})
  .catch(() => {})

Warning: Unlike React Native AsyncStorage, this module doesn't accept callbacks. If you are already using Promises or async/await, this warning can be ignored.

About

Cross platform storage for React, built on top of AsyncStorage

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%