@gorhom/bottom-sheet
Version:
A performant interactive bottom sheet with fully configurable options 🚀
18 lines (15 loc) • 638 B
TypeScript
import type { ReactNode } from 'react';
import type { Insets, StyleProp, ViewStyle } from 'react-native';
import type { SharedValue } from 'react-native-reanimated';
import type { ContainerLayoutState, LayoutState } from '../../types';
import type { BottomSheetProps } from '../bottomSheet/types';
export interface BottomSheetHostingContainerProps
extends Partial<
Pick<BottomSheetProps, 'topInset' | 'bottomInset' | 'detached'>
> {
containerLayoutState?: SharedValue<ContainerLayoutState>;
layoutState?: SharedValue<LayoutState>;
shouldCalculateHeight?: boolean;
style?: StyleProp<ViewStyle>;
children?: ReactNode;
}