UNPKG

react-native-bottom-sheets

Version:

A tiny wrapper around @gorhom/bottom-sheet to make it easier to use in react-native projects.

24 lines (23 loc) 929 B
import { EventCallback } from "../types"; import EventEmitter from "./EventEmitter"; /** * BottomSheetManager class for managing bottom sheet operations. * Extends EventEmitter to provide event-based communication. */ declare class BottomSheetManager extends EventEmitter { /** * Opens a bottom sheet. * @param name - The name of the bottom sheet to open. * @param params - Parameters to pass to the bottom sheet. * @param callback - Optional callback to be called after opening the bottom sheet. */ open(name: string, params: any, callback?: EventCallback): void; /** * Closes a bottom sheet. * @param name - The name of the bottom sheet to close. * @param callback - Optional callback to be called after closing the bottom sheet. */ close(callback?: EventCallback): void; } declare const bottomSheetManager: BottomSheetManager; export default bottomSheetManager;