forked from nysamnang/react-native-raw-bottom-sheet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.d.ts
29 lines (27 loc) · 807 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
28
29
import { Component } from "react";
import { StyleProp, ViewStyle } from "react-native";
declare module "react-native-raw-bottom-sheet" {
export type RBSheetProps = {
animationType?: "none" | "fade" | "slide";
height?: number;
minClosingHeight?: number;
openDuration?: number;
closeDuration?: number;
closeOnDragDown?: boolean;
dragFromTopOnly?: boolean;
closeOnPressMask?: boolean;
closeOnPressBack?: boolean;
onClose?: () => void;
onOpen?: () => void;
customStyles?: {
wrapper?: StyleProp<ViewStyle>;
container?: StyleProp<ViewStyle>;
draggableIcon?: StyleProp<ViewStyle>;
};
keyboardAvoidingViewEnabled?: boolean;
};
export default class RBSheet extends Component<RBSheetProps> {
open(): void;
close(): void;
}
}