@gorhom/bottom-sheet
Version:
A performant interactive bottom sheet with fully configurable options 🚀
23 lines (16 loc) • 561 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.useBottomSheetInternal = void 0;
var _react = require("react");
var _internal = require("../contexts/internal");
const useBottomSheetInternal = () => {
const context = (0, _react.useContext)(_internal.BottomSheetInternalContext);
if (context === null) {
throw "'useBottomSheetInternal' cannot be used out of the BottomSheet!";
}
return context;
};
exports.useBottomSheetInternal = useBottomSheetInternal;
//# sourceMappingURL=useBottomSheetInternal.js.map