// Module ID: 6432 // Function ID: 6433 // Name: NativeDetector // Dependencies: [19, 17, 21, 6433, 6391, 6450, 6392, 6451, 6452, 6444, 6453] // Exports: NativeDetector // Module 6432 (NativeDetector) import "noop"; import { useMemo } from "noop"; import { Platform } from "get ActivityIndicator"; import { jsx } from "jsxProd"; const require = arg1; export const NativeDetector = function NativeDetector(gesture) { let children; let enableContextMenu; let touchAction; let userSelect; gesture = gesture.gesture; ({ children, touchAction, userSelect, enableContextMenu } = gesture); let obj = gesture(6433); if (gesture.config.dispatchesAnimatedEvents) { let ReanimatedNativeDetector = tmp(6391).AnimatedNativeDetector; } else if (gesture.config.shouldUseReanimatedDetector) { ReanimatedNativeDetector = tmp(6450).ReanimatedNativeDetector; } else { ReanimatedNativeDetector = importDefault(6392); } let tmpResult = tmp(6451); const result = tmpResult.ensureNativeDetectorComponent(ReanimatedNativeDetector); tmpResult = tmp(6452); const gestureRelationsUpdater = tmpResult.useGestureRelationsUpdater(gesture); const items = [gesture]; const tmp6 = useMemo(() => { if (obj.isComposedGesture(gesture)) { let handlerTags = tmp.handlerTags; } else { handlerTags = [tmp.handlerTag]; } return handlerTags; }, items); const detectorAttachmentGuard = gesture(6453).useDetectorAttachmentGuard(tmp6); obj = { onGestureHandlerReanimatedEvent: gesture.detectorCallbacks.reanimatedEventHandler }; obj = { onStartShouldSetResponder: obj.useJSResponderHandler(gesture).handleStartShouldSetResponder, touchAction, userSelect, enableContextMenu, pointerEvents: "box-none", onGestureHandlerStateChange: gesture.detectorCallbacks.jsEventHandler, onGestureHandlerEvent: gesture.detectorCallbacks.jsEventHandler, onGestureHandlerTouchEvent: gesture.detectorCallbacks.jsEventHandler, onGestureHandlerReanimatedStateChange: obj.onGestureHandlerReanimatedStateChange, onGestureHandlerReanimatedEvent: obj.onGestureHandlerReanimatedEvent, onGestureHandlerReanimatedTouchEvent: obj.onGestureHandlerReanimatedTouchEvent, onGestureHandlerAnimatedEvent: gesture.detectorCallbacks.animatedEventHandler, moduleId: globalThis._RNGH_MODULE_ID, handlerTags: tmp6, style: tmp(6391).nativeDetectorStyles.detector, children }; return {children}; };