UNPKG

@gorhom/bottom-sheet

Version:

A performant interactive bottom sheet with fully configurable options 🚀

9 lines (6 loc) • 290 B
import { createContext } from 'react'; import type { BottomSheetMethods, BottomSheetVariables } from '../types'; export const BottomSheetContext = createContext< (BottomSheetMethods & BottomSheetVariables) | null >(null); export const BottomSheetProvider = BottomSheetContext.Provider;