Need private packages and team management tools?Check out npm Teams »

@react-native-community/async-storage-backend-legacy

2.0.0-rc.0 • Public • Published

Storage Backend: Legacy

An AsyncStorage storage backend, fully compatible with former version.

Installation

$ yarn add @react-native-community/async-storage-backend-legacy

Usage

 
import LegacyStorage from '@react-native-community/async-storage-backend-legacy';
import AsyncStorageFactory from '@react-native-community/async-storage';
 
type MyModel = {
  // ...your storage model
}
 
const legacyStorage = new LegacyStorage();
 
const storage = AsyncStorageFactory.create<MyModel>(legacyStorage);
 
// ready to use
export default storage;

License

MIT

Keywords

none

Install

npm i @react-native-community/async-storage-backend-legacy

DownloadsWeekly Downloads

1,381

Version

2.0.0-rc.0

License

MIT

Unpacked Size

100 kB

Total Files

24

Last publish

Collaborators

  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar