react-native-unit-components
Version:
Unit React Native components
39 lines • 1.4 kB
TypeScript
import { ReactNode } from 'react';
import PropTypes from 'prop-types';
import { BottomSheetNativePlaceType } from '../../types/internal/bottomSheet.types';
export interface BottomSheetProps {
isOpen: boolean;
children: ReactNode;
onOpen: () => void;
onClose: () => void;
height: number;
animationDuration: number;
expandToMaxHeightEnabled: boolean;
handleWebViewScroll: () => void;
shouldEnableBottomSheetScroll: boolean;
nativePlace?: BottomSheetNativePlaceType;
isComponentLoading?: boolean;
sliderMaxHeight: number;
}
declare const BottomSheet: {
(props: BottomSheetProps): JSX.Element;
propTypes: {
children: PropTypes.Requireable<NonNullable<PropTypes.ReactNodeLike>>;
isOpen: PropTypes.Requireable<boolean>;
animation: PropTypes.Requireable<(...args: any[]) => any>;
animationDuration: PropTypes.Requireable<number>;
onOpen: PropTypes.Requireable<(...args: any[]) => any>;
onClose: PropTypes.Requireable<(...args: any[]) => any>;
expandToMaxHeightEnabled: PropTypes.Requireable<boolean>;
};
defaultProps: {
children: JSX.Element;
isOpen: boolean;
animationDuration: number;
onOpen: () => null;
onClose: () => null;
expandToMaxHeightEnabled: boolean;
};
};
export default BottomSheet;
//# sourceMappingURL=BottomSheet.d.ts.map