react-native-global-state-hooks
Version:
This is a package to easily handling global-state across your react-native-components No-redux... The library now includes @react-native-async-storage/async-storage to persist your state across sessions... if you want to keep using the old version without
9 lines (8 loc) • 325 B
TypeScript
import type { AsyncStorageConfig } from "./types";
/**
* Gets an item from async storage
* @param args AsyncStorageConfig configuration
* @returns The stored value or null if not found
*/
export declare const getAsyncStorageItem: <TState>(args: AsyncStorageConfig) => Promise<TState>;
export default getAsyncStorageItem;