UNPKG

@lunalee/react-native-raw-bottom-sheet

Version:

Add Your Own Component To Bottom Sheet Whatever You Want (Android & iOS)

31 lines (28 loc) 826 B
import { Component } from "react" import { StyleProp, ViewStyle } from "react-native" declare module "@lunalee/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 children?: React.ReactNode } export default class RBSheet extends Component<RBSheetProps> { open(): void close(): void } }