UNPKG

@gorhom/bottom-sheet

Version:

A performant interactive bottom sheet with fully configurable options 🚀

12 lines (11 loc) • 357 B
"use strict"; import { useContext } from 'react'; import { BottomSheetModalContext } from '../contexts'; export const useBottomSheetModal = () => { const context = useContext(BottomSheetModalContext); if (context === null) { throw "'BottomSheetModalContext' cannot be null!"; } return context; }; //# sourceMappingURL=useBottomSheetModal.js.map