decord/source/5923_useGestureHandlerRef.js
2026-08-25 06:04:03 +00:00

22 lines
673 B
JavaScript

// Module ID: 5923
// Function ID: 5924
// Name: useGestureHandlerRef
// Dependencies: [19, 5896]
// Exports: useGestureHandlerRef
// Module 5923 (useGestureHandlerRef)
import GestureHandlerRefContext from "GestureHandlerRefContext" /* 5896 */;
import closure_2 from "noop" /* 19 */;
require = arg1;
export const useGestureHandlerRef = function useGestureHandlerRef() {
const context = React.useContext(GestureHandlerRefContext.GestureHandlerRefContext);
if (undefined === context) {
const _Error = Error;
error = new Error("Couldn't find a ref for gesture handler. Are you inside a screen in Stack?");
throw error;
} else {
return context;
}
};