import React from 'react'; import { StyleProp, ViewStyle } from 'react-native'; export interface IModalPropTypes { wrapStyle?: StyleProp; maskStyle?: StyleProp; style?: {}; animationType: 'none' | 'fade' | 'slide-up' | 'slide-down'; animationDuration?: number; visible: boolean; maskClosable?: boolean; animateAppear?: boolean; onClose?: () => void; onAnimationEnd?: (visible: boolean) => void; } export default class RCModal extends React.Component { static defaultProps: IModalPropTypes; animMask: any; animDialog: any; constructor(props: IModalPropTypes); componentWillReceiveProps(nextProps: IModalPropTypes): void; shouldComponentUpdate(nextProps: IModalPropTypes, nextState: any): boolean; componentDidMount(): void; componentDidUpdate(prevProps: IModalPropTypes): void; componentWillUnmount(): void; animateMask: (visible: boolean) => void; stopMaskAnim: () => void; stopDialogAnim: () => void; animateDialog: (visible: boolean) => void; close: () => void; onMaskClose: () => void; getPosition: (visible: boolean) => number; getScale: (visible: boolean) => 1 | 1.05; getOpacity: (visible: boolean) => 1 | 0; render(): any; }