Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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;