@devvie/bottom-sheet
Version:
The 😎smart , 📦tiny , and 🎗flexible bottom sheet your app craves 🚀
14 lines (12 loc) • 346 B
TypeScript
export type HookReturn = void;
/**
* Function type
*/
export type UseHandleAndroidBackButtonClose = (
/** Whether to close sheet when back button is pressed*/
shouldClose: boolean,
/** Function to call to close the sheet */
closeSheet: () => void,
/** Determines the sheet's visibility state */
sheetOpen: boolean
) => HookReturn;