UNPKG

@react-native-async-storage/async-storage

Version:

Asynchronous, persistent, key-value storage system for React Native.

14 lines 413 B
/** * @format * */ import AsyncStorage from './AsyncStorage'; export function useAsyncStorage(key) { return { getItem: (...args) => AsyncStorage.getItem(key, ...args), setItem: (...args) => AsyncStorage.setItem(key, ...args), mergeItem: (...args) => AsyncStorage.mergeItem(key, ...args), removeItem: (...args) => AsyncStorage.removeItem(key, ...args) }; } //# sourceMappingURL=hooks.js.map