@gorhom/bottom-sheet
Version:
A performant interactive bottom sheet with fully configurable options 🚀
12 lines (11 loc) • 434 B
JavaScript
import { useContext } from 'react';
import { BottomSheetGestureHandlersContext } from '../contexts/gesture';
export const useBottomSheetGestureHandlers = () => {
const context = useContext(BottomSheetGestureHandlersContext);
if (context === null) {
throw "'useBottomSheetGestureHandlers' cannot be used out of the BottomSheet!";
}
return context;
};
//# sourceMappingURL=useBottomSheetGestureHandlers.js.map
;