Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4821.js (118.4 MB)
21 lines
625 B
JavaScript
21 lines
625 B
JavaScript
// Module ID: 7137
|
|
// Function ID: 7138
|
|
// Dependencies: [19, 7110]
|
|
// Exports: useGestureHandlerRef
|
|
|
|
// Module 7137
|
|
import GestureHandlerRefContext from "GestureHandlerRefContext" /* 7110 */;
|
|
import noop from "module_19" /* 19 */;
|
|
|
|
require = arg1;
|
|
|
|
export const useGestureHandlerRef = function useGestureHandlerRef() {
|
|
const context = noop.useContext(GestureHandlerRefContext.GestureHandlerRefContext);
|
|
if (undefined === context) {
|
|
const _Error = Error;
|
|
const error = new Error("Couldn't find a ref for gesture handler. Are you inside a screen in Stack?");
|
|
throw error;
|
|
} else {
|
|
return context;
|
|
}
|
|
};
|