22 lines
673 B
JavaScript
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;
|
|
}
|
|
};
|