UNPKG

@gorhom/bottom-sheet

Version:

A performant interactive bottom sheet with fully configurable options 🚀

12 lines (11 loc) • 421 B
"use strict"; import { useContext } from 'react'; import { BottomSheetInternalContext } from '../contexts/internal'; export function useBottomSheetInternal(unsafe) { const context = useContext(BottomSheetInternalContext); if (unsafe !== true && context === null) { throw "'useBottomSheetInternal' cannot be used out of the BottomSheet!"; } return context; } //# sourceMappingURL=useBottomSheetInternal.js.map