How to use the @react-native-community/async-storage.create function in @react-native-community/async-storage

To help you get started, we’ve selected a few @react-native-community/async-storage examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github react-native-community / async-storage / examples / mobile / src / legacy / storage.js View on Github external
import LegacyStorage from '@react-native-community/async-storage-backend-legacy';
import AsyncStorageFactory from '@react-native-community/async-storage';


const legacy = new LegacyStorage();

const storage = AsyncStorageFactory.create(legacy, {});

export default storage;