UNPKG

react-native-expo-bottomsheet

Version:

A lightWeight and customizeble bottom sheet components for React Native Expo support. Includes Smooth animation

29 lines (28 loc) 947 B
import React from "react"; import { StyleProp, ViewStyle } from "react-native"; export interface BottomSheetProps { snapPoints?: (string | number)[]; openDuration?: number; closeDuration?: number; closeOnPressMask?: boolean; closeOnPressBack?: boolean; draggable?: boolean; dragOnContent?: boolean; onOpen?: (() => void) | null; onClose?: (() => void) | null; children?: React.ReactNode; mainContainer?: StyleProp<ViewStyle>; wrapperColors?: StyleProp<ViewStyle>; defaultOpen?: boolean; showIndicator?: boolean; statusBar?: boolean; enableTouchThrough?: boolean; useModal?: boolean; } export interface BottomSheetHandle { open: () => void; close: () => void; snapToIndex: (index: number) => void; } declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<BottomSheetProps & React.RefAttributes<BottomSheetHandle>>>; export default _default;