UNPKG

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

Version:

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

15 lines (11 loc) 509 B
import AsyncStorage from './AsyncStorage'; import type { AsyncStorageHook, AsyncStorageStatic } from './types'; export { useAsyncStorage } from './hooks'; export type { AsyncStorageStatic } from './types'; export default AsyncStorage; // @ts-ignore AsyncStorage mock module declare module '@react-native-async-storage/async-storage/jest/async-storage-mock' { export function useAsyncStorage(key: string): AsyncStorageHook; const AsyncStorageLib: AsyncStorageStatic; export default AsyncStorageLib; }