forked from httnn/react-native-simple-modal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.d.ts
27 lines (24 loc) · 729 Bytes
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import * as React from "react";
import * as ReactNative from "react-native";
export interface ModalProps {
open?: boolean;
offset?: number;
overlayStyle?: ReactNative.ViewStyle;
animationDuration?: number;
animationTension?: number;
modalDidOpen?: () => void;
modalDidClose?: () => void;
closeOnTouchOutside?: boolean;
containerStyle?: ReactNative.ViewStyle;
containerProps?: ReactNative.ViewProperties;
modalStyle?: ReactNative.ViewStyle;
modalProps?: ReactNative.ViewProperties;
disableOnBackPress?: boolean;
useNativeDriver?: boolean;
}
declare class Modal extends React.Component<ModalProps, {}> {
close(): void;
open(): void;
animateOffset(offset: number): void;
}
export default Modal;