// Module ID: 6463 // Function ID: 6464 // Name: NativeDetector // Dependencies: [19, 17, 21, 6464, 6422, 6481, 6423, 6482, 6483, 6475, 6484] // Exports: NativeDetector // Module 6463 (NativeDetector) import noopDefault from "noop" /* 19 */; import __INTERNAL_VIEW_CONFIGDefault from "__INTERNAL_VIEW_CONFIG" /* 6423 */; import { useMemo } from "noop" /* 19 */; import { Platform } from "get ActivityIndicator" /* 17 */; import { jsx } from "jsxProd" /* 21 */; const require = arg1; noopDefault; export const NativeDetector = function NativeDetector(gesture) { gesture = gesture.gesture; ({ children, touchAction, userSelect, enableContextMenu } = gesture); let obj = gesture(6464); if (gesture.config.dispatchesAnimatedEvents) { let ReanimatedNativeDetector = tmp(6422).AnimatedNativeDetector; } else if (gesture.config.shouldUseReanimatedDetector) { ReanimatedNativeDetector = tmp(6481).ReanimatedNativeDetector; } else { ReanimatedNativeDetector = __INTERNAL_VIEW_CONFIGDefault; } let tmpResult = tmp(6482); const result = tmpResult.ensureNativeDetectorComponent(ReanimatedNativeDetector); tmpResult = tmp(6483); 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(6484).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(6422).nativeDetectorStyles.detector, children }; return {children}; };