Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@callstack/async-storage

Package Overview
Dependencies
Maintainers
3
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@callstack/async-storage

Cross platform storage for React Native and Web, built on top of React Native

  • 2.0.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
314
decreased by-34.72%
Maintainers
3
Weekly downloads
 
Created
Source

Version Build Status

@callstack/async-storage

Cross platform local storage with React Native - like API.

Check out working web example 💻 and mobile 📱

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.

Sice the version 1.1.0 we do support callbacks (along with promises) for methods setItem, getItem, removeItem and getAllKeys. That's mean that this library now plays well with e.g. redux-persist. :rocket:

FAQs

Package last updated on 09 Jul 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc