@gorhom/bottom-sheet
Version:
A performant interactive bottom sheet with fully configurable options 🚀
26 lines (24 loc) • 883 B
TypeScript
import type { PanGestureHandlerProperties } from 'react-native-gesture-handler';
import type { SharedValue } from 'react-native-reanimated';
import type { useInteractivePanGestureHandlerConfigs } from '../../hooks/useGestureHandler';
import type { BottomSheetProps } from '../bottomSheet';
import type { BottomSheetHandleProps } from '../bottomSheetHandle';
export interface BottomSheetHandleContainerProps
extends Pick<PanGestureHandlerProperties, 'simultaneousHandlers'>,
Pick<
BottomSheetProps,
| 'handleComponent'
| 'enableHandlePanningGesture'
| 'handleIndicatorStyle'
| 'handleStyle'
>,
Pick<
useInteractivePanGestureHandlerConfigs,
| 'enableOverDrag'
| 'enablePanDownToClose'
| 'overDragResistanceFactor'
| 'keyboardBehavior'
>,
BottomSheetHandleProps {
handleHeight: SharedValue<number>;
}