react-native-bottom-sheets
Version:
A tiny wrapper around @gorhom/bottom-sheet to make it easier to use in react-native projects.
13 lines (12 loc) • 482 B
TypeScript
import { BottomSheetProps as GorhomBottomSheetProps } from "@gorhom/bottom-sheet";
export interface BottomSheetsProps extends Omit<GorhomBottomSheetProps, "children"> {
sheets: Record<string, React.ComponentType<any>>;
}
export type BottomSheetProps = {
open: boolean;
params: any;
openBottomSheet: (props?: any) => void;
closeBottomSheet: (props?: any) => void;
defaultProps: GorhomBottomSheetProps;
};
export type EventCallback = (...args: any[]) => void;