import type { ReactElement, ReactNode } from 'react'; import React from 'react'; import type { StyleProp, ViewStyle, KeyboardAvoidingViewProps } from 'react-native'; export interface BottomSheetProps { /** * Bottom sheet open state. */ open: boolean; /** * Bottom sheet's header. */ header?: string | ReactElement; /** * Bottom sheet's footer. */ footer?: ReactNode; /** * Bottom sheet's content. */ children?: ReactNode; /** * Callback is called when the Bottom Sheet finishes running animation. */ onAnimationEnd?: () => void; /** * Callback is called when the Bottom Sheet is opened. */ onOpen?: () => void; /** * Callback is called when the user taps the back button on Android or when the bottom sheet * is being dismiss by interacting outside of the bottom sheet. */ onRequestClose?: () => void; /** * Callback that is called once the bottom sheet has been dismissed. */ onDismiss?: () => void; /** * Displays an X button on bottom sheet header that will invoke onRequestClose callback on press. */ showCloseButton?: boolean; /** * Enable the bottom sheet's backdrop. */ hasBackdrop?: boolean; /** * Displays dividers between header, footer and body. */ showDivider?: boolean; /** * Additional style. */ style?: StyleProp; /** * Testing id of the component. */ testID?: string; /** * keyboardAvoidingView's props * */ keyboardAvoidingViewProps?: KeyboardAvoidingViewProps; /** * Supported orientations for the BottomSheet modal, iOS only. */ supportedOrientations?: ('portrait' | 'landscape')[]; /** * Variant of the bottom sheet. */ variant?: 'fixed' | 'floating'; } declare const _default: (({ open, header, footer, children, onAnimationEnd, onOpen, onRequestClose, onDismiss, showCloseButton, hasBackdrop, showDivider, style, testID, keyboardAvoidingViewProps, supportedOrientations, variant, }: BottomSheetProps) => ReactElement) & { ScrollView: React.ForwardRefExoticComponent>; }; export default _default;