UNPKG

react-native-drawer-layout

Version:
12 lines (11 loc) 398 B
"use strict"; import * as React from 'react'; import { DrawerProgressContext } from "./DrawerProgressContext.js"; export function useDrawerProgress() { const progress = React.useContext(DrawerProgressContext); if (progress === undefined) { throw new Error("Couldn't find a drawer. Is your component inside a drawer?"); } return progress; } //# sourceMappingURL=useDrawerProgress.js.map