UNPKG

@td-design/react-native

Version:

react-native UI组件库

13 lines 482 B
/// <reference types="react" /> import { PromptProps } from '../type'; export default function usePrompt({ onOk, onCancel }: Pick<PromptProps, 'onOk' | 'onCancel'>): { value: undefined; visible: boolean; okBtnLoading: boolean; cancelBtnLoading: boolean; hide: () => void; onChange: import("react").Dispatch<import("react").SetStateAction<undefined>>; handleOk: () => void; handleCancel: () => Promise<void>; }; //# sourceMappingURL=usePrompt.d.ts.map