react-native-use-modal-hooks
Version:
React hooks for displaying a modal window in React Native
12 lines (11 loc) • 336 B
TypeScript
import { ModalType } from "./ModalContext";
/**
* Callback types provided for descriptive type-hints
*/
declare type ShowModal = () => void;
declare type HideModal = () => void;
/**
* React hook for showing modal windows
*/
export declare const useModal: (component: ModalType, inputs?: any[]) => [ShowModal, HideModal];
export {};