UNPKG

@td-design/react-native

Version:

react-native UI组件库

22 lines 664 B
import { ViewStyle } from 'react-native'; import { ModalProps } from '../type'; export default function useModal({ animationType, animationDuration, visible, maskClosable, position, onClose, onAnimationEnd, onRequestClose, }: ModalProps): { modalVisible: boolean; wrapStyle: ViewStyle; defaultStyle: ViewStyle; handleMaskClose: () => void; animationStyleMap: { slide: { transform: { translateY: number; }[]; }; fade: { transform: { scale: number; }[]; opacity: number; }; }; }; //# sourceMappingURL=useModal.d.ts.map