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