You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
1.1 KiB
35 lines
1.1 KiB
import React from 'react';
|
|
import { ViewStyle } from 'react-native';
|
|
export interface IModalPropTypes {
|
|
wrapStyle?: ViewStyle;
|
|
maskStyle?: ViewStyle;
|
|
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<IModalPropTypes, any> {
|
|
static defaultProps: IModalPropTypes;
|
|
animMask: any;
|
|
animDialog: any;
|
|
constructor(props: any);
|
|
componentWillReceiveProps(nextProps: any): void;
|
|
shouldComponentUpdate(nextProps: any, nextState: any): boolean;
|
|
componentDidMount(): void;
|
|
componentDidUpdate(prevProps: any): void;
|
|
animateMask: (visible: any) => void;
|
|
stopMaskAnim: () => void;
|
|
stopDialogAnim: () => void;
|
|
animateDialog: (visible: any) => void;
|
|
close: () => void;
|
|
onMaskClose: () => void;
|
|
getPosition: (visible: any) => number;
|
|
getScale: (visible: any) => 1 | 1.05;
|
|
getOpacity: (visible: any) => 0 | 1;
|
|
render(): any;
|
|
}
|