forked from nysamnang/react-native-raw-bottom-sheet
-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.d.ts
32 lines (30 loc) · 906 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
30
31
32
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;
renderHeader?: () => React.ReactNode;
customStyles?: {
wrapper?: StyleProp<ViewStyle>;
container?: StyleProp<ViewStyle>;
draggableIcon?: StyleProp<ViewStyle>;
};
keyboardAvoidingViewEnabled?: boolean;
enabledInnerScrolling?: boolean;
};
export default class RBSheet extends Component<RBSheetProps> {
open(): void;
close(): void;
snapTo(): void;
}
}