react-native-bottom-sheets
Version:
A tiny wrapper around @gorhom/bottom-sheet to make it easier to use in react-native projects.
14 lines (13 loc) • 459 B
TypeScript
import { EventCallback } from "../types";
/**
* Custom hook for managing bottom sheet state and operations.
* @returns An object containing bottom sheet state and control functions.
*/
declare const useBottomSheets: () => {
name: string;
open: boolean;
params: any;
openBottomSheet: (name: string, params?: any, callback?: EventCallback) => void;
closeBottomSheet: (callback?: EventCallback) => void;
};
export default useBottomSheets;