UNPKG

@gorhom/bottom-sheet

Version:

A performant interactive bottom sheet with fully configurable options 🚀

12 lines (8 loc) • 327 B
import { createContext } from 'react'; export interface BottomSheetModalContextType { dismiss: (key?: string) => boolean; dismissAll: () => void; } export const BottomSheetModalContext = createContext<BottomSheetModalContextType | null>(null); export const BottomSheetModalProvider = BottomSheetModalContext.Provider;