decord/source/5923_useGestureHandlerRef.js

23 lines
673 B
JavaScript
Raw Normal View History

2026-08-25 06:04:03 +00:00
// Module ID: 5923
// Function ID: 5924
2026-08-24 06:08:38 +00:00
// Name: useGestureHandlerRef
2026-08-25 06:04:03 +00:00
// Dependencies: [19, 5896]
2026-08-24 06:08:38 +00:00
// Exports: useGestureHandlerRef
2026-08-25 06:04:03 +00:00
// Module 5923 (useGestureHandlerRef)
import GestureHandlerRefContext from "GestureHandlerRefContext" /* 5896 */;
2026-08-24 06:08:38 +00:00
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;
}
};