UNPKG

@gorhom/bottom-sheet

Version:

A performant interactive bottom sheet with fully configurable options 🚀

12 lines (11 loc) • 418 B
"use strict"; import { useContext } from 'react'; import { BottomSheetModalInternalContext } from '../contexts'; export function useBottomSheetModalInternal(unsafe) { const context = useContext(BottomSheetModalInternalContext); if (unsafe !== true && context === null) { throw "'BottomSheetModalInternalContext' cannot be null!"; } return context; } //# sourceMappingURL=useBottomSheetModalInternal.js.map