UNPKG

@gorhom/bottom-sheet

Version:

A performant interactive bottom sheet with fully configurable options 🚀

10 lines • 406 B
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