2.0.0-rc.0 • Published 4 years ago
@react-native-community/async-storage-backend-legacy v2.0.0-rc.0
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.
2.0.0-rc.3
4 years ago
2.0.0-rc.2
4 years ago
2.0.0-rc.1
4 years ago
2.0.0-rc.0
4 years ago
0.0.0
4 years ago