2.0.0-rc.0 • Published 4 years ago

@react-native-community/async-storage-backend-legacy v2.0.0-rc.0

Weekly downloads
2,544
License
MIT
Repository
-
Last release
4 years ago

Storage Backend: Legacy

An AsyncStorage storage backend, fully compatible with former version.

Installation

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

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.