UNPKG

react-native-modal-2

Version:

A powerful, customizable modal library for React Native with smooth animations, touchable backdrop, and comprehensive TypeScript support.

13 lines (12 loc) 372 B
interface UseModalResult { visible: boolean; showModal: () => void; hideModal: () => void; toggleModal: () => void; } /** * A hook to manage modal visibility state * @returns {UseModalResult} An object containing the modal state and functions to control it */ declare const useModal: (initialState?: boolean) => UseModalResult; export default useModal;