UNPKG

@gorhom/bottom-sheet

Version:

A performant interactive bottom sheet with fully configurable options 🚀

13 lines (9 loc) • 330 B
import { useContext } from 'react'; import { BottomSheetModalInternalContext } from '../contexts'; export const useBottomSheetModalInternal = () => { const context = useContext(BottomSheetModalInternalContext); if (context === null) { throw "'BottomSheetModalInternalContext' cannot be null!"; } return context; };