UNPKG

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

Version:

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

12 lines (11 loc) 405 B
"use strict"; 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