Storage Backend: Legacy
Storage backend for Async Storage
, targeting Mobile platform (React-Native). Compatible with former version of Async Storage
.
Installation
- Get the core
$ yarn add @react-native-community/async-storage@next
- Get the the storage
$ 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 = {
}
const legacyStorage = new LegacyStorage();
const storage = AsyncStorageFactory.create<MyModel>(legacyStorage);
export default storage;
License
MIT.