AI Slop Code Risk Monitor

software-mansion/react-native-gesture-handler

SlopCodeMonitor badge for software-mansion/react-native-gesture-handler Adjusted legacy signal; badge bands: 25 / 50 / 75 (different from dashboard bands).

Declarative API exposing platform native touch and gesture system to React Native.

1.3 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for software-mansion/react-native-gesture-handler, a TypeScript project with 6,796 GitHub stars. SynthScan examined 99,792 lines of code across 964 source files, recording 95 pattern matches distributed across 5 syntactic categories. The legacy adjusted pattern signal is 1.3 (Low pattern signal); it is not an authorship estimate.

Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.

1.3
Adjusted Signal
1.3
Raw Pattern Score
100%
Time Factor
2026-10-28
Last Push
6.8K
Stars
TypeScript
Language
99.8K
Lines of Code
964
Files
95
Pattern Hits
2026-10-31
Scan Date
0.01
HC Hit Rate

Risk Review · Payload v1

Use each vector to guide manual verification of the underlying findings.

Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.

Cognitive Ownership Risk 6.0/100 · LOW

Can maintainers explain intent, assumptions, and trade-offs? 91 finding(s).

Hallucinated Dependency & Supply Chain Risk 0.2/100 · LOW

Are imports declared and package/API names verified? 4 finding(s).

Agent Over-Engineering Ratio 2.7/100 · LOW

Are wrappers, guards, and repeated structures necessary? 55 finding(s).

PR Review Velocity Impact 5.8/100 · LOW

Which changes need focused human review? 95 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.

Severity Breakdown

Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.

CRITICAL 0HIGH 5MEDIUM 0LOW 90

Directory Score Breakdown

This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.

Pattern Findings

The scanner identified 95 distinct pattern matches across 5 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.

Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.

Hyper-Verbose Identifiers55 hits · 55 pts
SeverityFileLineSnippetContext
LOWscripts/clangd-add-xcode-step.rb1def add_clangd_generation_step()CODE
LOWpackages/docs-gesture-handler/docusaurus.config.js172 async function gestureHandlerDocusaurusPlugin(context, options) {CODE
LOW…ocs-gesture-handler/components/Compatibility/index.tsx141export function GestureHandlerCompatibility({CODE
LOW…ckages/docs-gesture-handler/static/js/snack-helpers.js62function transformExistingSnackLinks() {CODE
LOW…s-gesture-handler/static/examples/PinchGestureBasic.js34 function updateCenterAndDimensions() {CODE
LOW…rsioned_docs/version-2.x/examples/PinchGestureBasic.js34 function updateCenterAndDimensions() {CODE
LOW…teractiveExample/InteractiveExampleComponent/index.tsx12export default function InteractiveExampleComponent({CODE
LOW…handler/src/theme/AnnouncementBar/CloseButton/index.js6export default function AnnouncementBarCloseButton(props) {CODE
LOW…ative-gesture-handler/scripts/gesture_handler_utils.rb18 def react_native_worklets_package_dir()CODE
LOW…ative-gesture-handler/scripts/gesture_handler_utils.rb22 def react_native_worklets_supports_stable_api()CODE
LOWpackages/react-native-gesture-handler/src/web/utils.ts107function getElementLinearTransform(element: Element): LinearTransform {CODE
LOW…esture-handler/src/web/tools/GestureLifecycleEvents.ts9export function dispatchGestureLifecycleEvent(CODE
LOW…eact-native-gesture-handler/src/jestUtils/jestUtils.ts281function fillMissingStatesTransitions(CODE
LOW…eact-native-gesture-handler/src/jestUtils/jestUtils.ts328 function fillEventsForCurrentState({CODE
LOW…eact-native-gesture-handler/src/jestUtils/jestUtils.ts562function resolveGestureControllerTarget(target: GestureControllerTarget) {CODE
LOW…e-handler/src/components/Pressable/stateDefinitions.ts33function getAndroidAccessibilityStatesConfig(CODE
LOW…t-native-gesture-handler/src/__tests__/Errors.test.tsx48 function VirtualDetectorWithNoBoundary() {CODE
LOW…t-native-gesture-handler/src/__tests__/Errors.test.tsx73 function VirtualDetectorSwallowedRef() {CODE
LOW…t-native-gesture-handler/src/__tests__/Errors.test.tsx124 function InterceptingDetectorMultipleTypes() {CODE
LOW…t-native-gesture-handler/src/__tests__/Errors.test.tsx213 function SameGestureTwoVirtualDetectors() {CODE
LOW…t-native-gesture-handler/src/__tests__/Errors.test.tsx237 function GestureDetectorNoRootView() {CODE
LOW…t-native-gesture-handler/src/__tests__/Errors.test.tsx251 function GestureDetectorNoRootView() {CODE
LOW…t-native-gesture-handler/src/__tests__/Errors.test.tsx266 function GestureDetectorNoRootView() {CODE
LOW…sture-handler/src/__tests__/gestureController.test.tsx11function mockedContinuousCallbacks() {CODE
LOW…sture-handler/src/__tests__/gestureController.test.tsx40function assertGestureControllerTypes(pan: PanGesture, tap: TapGesture) {CODE
LOW…er/src/__tests__/reanimatedSwipeableCallbacks.test.tsx244 function expectNoSwipeableCallbacks() {CODE
LOW…act-native-gesture-handler/src/v3/scrollViewInterop.ts19export function updateResponderEventValue(CODE
LOW…r/src/v3/components/ScrollViewResponderInterceptor.tsx26function subscribeToKeyboardVisibility() {CODE
LOW…r/src/v3/components/ScrollViewResponderInterceptor.tsx51function unsubscribeFromKeyboardVisibility() {CODE
LOW…e-gesture-handler/src/v3/hooks/utils/propsWhiteList.ts90export function applyProductionTestIDFilter() {CODE
LOW…sture-handler/src/v3/hooks/utils/eventHandlersUtils.ts97export function touchEventTypeToCallbackType(CODE
LOW…ative-gesture-handler/src/v3/hooks/utils/eventUtils.ts76export function checkMappingForChangeProperties(animatedEvent: AnimatedEvent) {CODE
LOW…ve-gesture-handler/src/v3/hooks/utils/relationUtils.ts36function makeSimultaneousWithSymmetric(CODE
LOW…er/src/v3/detectors/useEnsureGestureHandlerRootView.ts6export function useEnsureGestureHandlerRootView() {CODE
LOW…-handler/src/v3/detectors/ReanimatedNativeDetector.tsx34function LeanReanimatedNativeDetector(CODE
LOW…react-native-gesture-handler/src/v3/detectors/utils.ts179export function ensureNativeDetectorComponent(CODE
LOW…handler/src/v3/detectors/useDetectorAttachmentGuard.ts13export function useDetectorAttachmentGuard(handlerTags: number[]) {CODE
LOW…e-handler/src/v3/detectors/HostGestureDetector.web.tsx150function tryAttachNativeHandlersToChildView(refs: DetectorRefs) {CODE
LOW…tors/VirtualDetector/useInterceptingDetectorContext.ts21export function useInterceptingDetectorContext() {CODE
LOW…r/src/v3/detectors/VirtualDetector/VirtualDetector.tsx36function useRequiredInterceptingDetectorContext() {CODE
LOW…ges/react-native-gesture-handler/src/handlers/utils.ts92export function scheduleOperationToBeFlushed(operation: () => void) {CODE
LOW…tive-gesture-handler/src/handlers/PanGestureHandler.ts174function validatePanGestureHandlerProps(props: PanGestureHandlerProps) {CODE
LOW…tive-gesture-handler/src/handlers/PanGestureHandler.ts224function transformPanGestureHandlerProps(props: PanGestureHandlerProps) {CODE
LOW…ative-gesture-handler/src/handlers/handlersRegistry.ts63export function registerOldGestureHandler(CODE
LOW…ative-gesture-handler/src/handlers/handlersRegistry.ts70export function unregisterOldGestureHandler(handlerTag: number) {CODE
LOW…ers/gestures/GestureDetector/refreshesAnimatableRef.ts24export function reanimatedRefreshesAnimatableRef() {CODE
LOW…handler/src/handlers/gestures/GestureDetector/utils.ts117export function checkGestureCallbacksForWorklets(gesture: GestureType) {CODE
LOW…andlers/gestures/GestureDetector/useAnimatedGesture.ts45function touchEventTypeToCallbackType(eventType: TouchEventType): CallbackType {CODE
LOW…rc/new_api/tests/nativeInterceptCancellation/index.tsx4export default function NativeInterceptCancellationExample() {CODE
LOW…pi/tests/nativeInterceptCancellation/index.android.tsx114export default function NativeInterceptCancellationExample() {CODE
LOW…/src/new_api/tests/keyboardShouldPersistTaps/index.tsx44export default function KeyboardShouldPersistTapsExample() {CODE
LOW…pp/src/new_api/tests/rnResponderCancellation/index.tsx10export default function RNResponderCancellationExample() {CODE
LOW…ommon-app/src/new_api/showcase/state_manager/index.tsx16export default function GestureStateManagerExample() {CODE
LOWapps/common-app/src/console/ConsoleModal.tsx286function useReactNativeLogBoxVisibility(onSeen: () => void) {CODE
LOWapps/common-app/src/console/consoleLogs.ts135export function installConsoleInterceptor() {CODE
Synthetic Comment Markers5 hits · 38 pts
SeverityFileLineSnippetContext
HIGH…onents/rngesturehandler_codegen/ComponentDescriptors.h3 * This code was generated byCOMMENT
HIGH…_codegen/RNGestureHandlerDetectorComponentDescriptor.h3 * This code was generated byCOMMENT
HIGH…rehandler_codegen/RNGestureHandlerDetectorShadowNode.h3 * This code was generated byCOMMENT
HIGH…gesturehandler_codegen/RNGestureHandlerDetectorState.h2 * This code was generated byCOMMENT
HIGH…handler_codegen/RNGestureHandlerDetectorShadowNode.cpp3 * This code was generated byCOMMENT
Over-Commented Block30 hits · 30 pts
SeverityFileLineSnippetContext
LOW…react-native-gesture-handler/apple/RNGestureHandler.mm1#import "RNGestureHandler.h"COMMENT
LOW…react-native-gesture-handler/apple/RNGestureHandler.mm421 }COMMENT
LOW…e-handler/apple/RNGestureHandlerButtonComponentView.mm1#import "RNGestureHandlerButtonComponentView.h"COMMENT
LOW…e-handler/apple/RNGestureHandlerButtonComponentView.mm201 // due to nested structure of Button and ComponentView, layout metrics for bothCOMMENT
LOW…handler/apple/RNGestureHandlerRootViewComponentView.mm1#import <React/RCTFabricComponentsPlugins.h>COMMENT
LOW…/react-native-gesture-handler/apple/RNGestureHandler.h1#import "RNGHUIKit.h"COMMENT
LOW…native-gesture-handler/apple/RNGestureHandlerModule.mm1#import "RNGestureHandlerModule.h"COMMENT
LOW…es/react-native-gesture-handler/apple/RNGHStylusData.h1//COMMENT
LOW…ve-gesture-handler/apple/RNRootViewGestureRecognizer.m1//COMMENT
LOW…ative-gesture-handler/apple/RNGestureHandlerManager.mm1#import "RNGestureHandlerManager.h"COMMENT
LOW…ative-gesture-handler/apple/RNGestureHandlerManager.mm21#import <React/RCTViewComponentView.h>COMMENT
LOW…native-gesture-handler/apple/RNGestureHandlerButton.mm1//COMMENT
LOW…native-gesture-handler/apple/RNGestureHandlerButton.mm61 // the touch until it rules out a scroll (or delivers begin and end together on a quick tap).COMMENT
LOW…tive-gesture-handler/apple/RNGestureHandlerDetector.mm1#import "RNGestureHandlerDetector.h"COMMENT
LOW…native-gesture-handler/apple/Handlers/RNHoverHandler.h1//COMMENT
LOW…t-native-gesture-handler/apple/Handlers/RNTapHandler.h1//COMMENT
LOW…ve-gesture-handler/apple/Handlers/RNLongPressHandler.h1//COMMENT
LOW…ive-gesture-handler/apple/Handlers/RNRotationHandler.m1//COMMENT
LOW…native-gesture-handler/apple/Handlers/RNPinchHandler.h1//COMMENT
LOW…t-native-gesture-handler/apple/Handlers/RNPanHandler.m1//COMMENT
LOW…native-gesture-handler/apple/Handlers/RNHoverHandler.m1//COMMENT
LOW…ve-gesture-handler/apple/Handlers/RNLongPressHandler.m1//COMMENT
LOW…t-native-gesture-handler/apple/Handlers/RNTapHandler.m1//COMMENT
LOW…-gesture-handler/apple/Handlers/RNNativeViewHandler.mm1//COMMENT
LOW…t-native-gesture-handler/apple/Handlers/RNPanHandler.h1//COMMENT
LOW…ive-gesture-handler/apple/Handlers/RNRotationHandler.h1//COMMENT
LOW…ve-gesture-handler/src/v3/detectors/NativeDetector.tsx41 const handlerTags = useMemo(() => {COMMENT
LOW…e-handler/src/v3/detectors/HostGestureDetector.web.tsx41// one stable object keeps the helpers pure (no closures over component-render-scoped values),COMMENT
LOW…ers/gestures/GestureDetector/refreshesAnimatableRef.ts1// Reanimated resolves `getAnimatableRef()` once, when its ref to the wrappedCOMMENT
LOW…/tests/rnResponderCancellation/MultiHandlerExample.tsx1import React, { useCallback, useRef, useState } from 'react';COMMENT
Fake / Example Data4 hits · 4 pts
SeverityFileLineSnippetContext
LOWapps/common-app/src/common.tsx263Nam posuere at mi ut porttitor. Vivamus dapibus vehicula mauris, commodo pretium nibh. Mauris turpis metus, vulputate iaCODE
LOWapps/common-app/src/common.tsx263Nam posuere at mi ut porttitor. Vivamus dapibus vehicula mauris, commodo pretium nibh. Mauris turpis metus, vulputate iaCODE
LOW…-app/src/legacy/release_tests/webStylesReset/index.tsx50 <Text style={{ fontSize: 32 }}> Lorem Ipsum </Text>CODE
LOW…/common-app/src/new_api/tests/webStylesReset/index.tsx62 <Text style={{ fontSize: 32, color: 'white' }}> Lorem Ipsum </Text>CODE
Verbosity Indicators1 hit · 2 pts
SeverityFileLineSnippetContext
LOW…tive-gesture-handler/src/v3/hooks/utils/configUtils.ts30 // For composed gestures, we need to check if at least one of the composed gestures is enabledCOMMENT