decord/source/6463_NativeDetector.js

46 lines
3.3 KiB
JavaScript
Raw Normal View History

2026-08-24 06:08:38 +00:00
// Module ID: 6463
// Function ID: 6464
2026-08-08 06:10:11 +00:00
// Name: NativeDetector
2026-08-24 06:08:38 +00:00
// Dependencies: [19, 17, 21, 6464, 6422, 6481, 6423, 6482, 6483, 6475, 6484]
2026-08-08 06:10:11 +00:00
// Exports: NativeDetector
2026-08-24 06:08:38 +00:00
// 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 */;
2026-08-08 06:10:11 +00:00
const require = arg1;
2026-08-24 06:08:38 +00:00
noopDefault;
2026-08-08 06:10:11 +00:00
export const NativeDetector = function NativeDetector(gesture) {
gesture = gesture.gesture;
({ children, touchAction, userSelect, enableContextMenu } = gesture);
2026-08-24 06:08:38 +00:00
let obj = gesture(6464);
2026-08-08 06:10:11 +00:00
if (gesture.config.dispatchesAnimatedEvents) {
2026-08-24 06:08:38 +00:00
let ReanimatedNativeDetector = tmp(6422).AnimatedNativeDetector;
2026-08-08 06:10:11 +00:00
} else if (gesture.config.shouldUseReanimatedDetector) {
2026-08-24 06:08:38 +00:00
ReanimatedNativeDetector = tmp(6481).ReanimatedNativeDetector;
2026-08-08 06:10:11 +00:00
} else {
2026-08-24 06:08:38 +00:00
ReanimatedNativeDetector = __INTERNAL_VIEW_CONFIGDefault;
2026-08-08 06:10:11 +00:00
}
2026-08-24 06:08:38 +00:00
let tmpResult = tmp(6482);
2026-08-08 06:10:11 +00:00
const result = tmpResult.ensureNativeDetectorComponent(ReanimatedNativeDetector);
2026-08-24 06:08:38 +00:00
tmpResult = tmp(6483);
2026-08-08 06:10:11 +00:00
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);
2026-08-24 06:08:38 +00:00
const detectorAttachmentGuard = gesture(6484).useDetectorAttachmentGuard(tmp6);
2026-08-08 06:10:11 +00:00
obj = { onGestureHandlerReanimatedEvent: gesture.detectorCallbacks.reanimatedEventHandler };
2026-08-24 06:08:38 +00:00
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 <ReanimatedNativeDetector onStartShouldSetResponder={obj.useJSResponderHandler(gesture).handleStartShouldSetResponder} touchAction={touchAction} userSelect={userSelect} enableContextMenu={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}</ReanimatedNativeDetector>;
2026-08-08 06:10:11 +00:00
};