Declarative API exposing platform native touch and gesture system to React Native.
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.
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.
Can maintainers explain intent, assumptions, and trade-offs? 91 finding(s).
Are imports declared and package/API names verified? 4 finding(s).
Are wrappers, guards, and repeated structures necessary? 55 finding(s).
Which changes need focused human review? 95 finding(s).
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.
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.
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.
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.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | scripts/clangd-add-xcode-step.rb | 1 | def add_clangd_generation_step() | CODE |
| LOW | packages/docs-gesture-handler/docusaurus.config.js | 172 | async function gestureHandlerDocusaurusPlugin(context, options) { | CODE |
| LOW | …ocs-gesture-handler/components/Compatibility/index.tsx | 141 | export function GestureHandlerCompatibility({ | CODE |
| LOW | …ckages/docs-gesture-handler/static/js/snack-helpers.js | 62 | function transformExistingSnackLinks() { | CODE |
| LOW | …s-gesture-handler/static/examples/PinchGestureBasic.js | 34 | function updateCenterAndDimensions() { | CODE |
| LOW | …rsioned_docs/version-2.x/examples/PinchGestureBasic.js | 34 | function updateCenterAndDimensions() { | CODE |
| LOW | …teractiveExample/InteractiveExampleComponent/index.tsx | 12 | export default function InteractiveExampleComponent({ | CODE |
| LOW | …handler/src/theme/AnnouncementBar/CloseButton/index.js | 6 | export default function AnnouncementBarCloseButton(props) { | CODE |
| LOW | …ative-gesture-handler/scripts/gesture_handler_utils.rb | 18 | def react_native_worklets_package_dir() | CODE |
| LOW | …ative-gesture-handler/scripts/gesture_handler_utils.rb | 22 | def react_native_worklets_supports_stable_api() | CODE |
| LOW | packages/react-native-gesture-handler/src/web/utils.ts | 107 | function getElementLinearTransform(element: Element): LinearTransform { | CODE |
| LOW | …esture-handler/src/web/tools/GestureLifecycleEvents.ts | 9 | export function dispatchGestureLifecycleEvent( | CODE |
| LOW | …eact-native-gesture-handler/src/jestUtils/jestUtils.ts | 281 | function fillMissingStatesTransitions( | CODE |
| LOW | …eact-native-gesture-handler/src/jestUtils/jestUtils.ts | 328 | function fillEventsForCurrentState({ | CODE |
| LOW | …eact-native-gesture-handler/src/jestUtils/jestUtils.ts | 562 | function resolveGestureControllerTarget(target: GestureControllerTarget) { | CODE |
| LOW | …e-handler/src/components/Pressable/stateDefinitions.ts | 33 | function getAndroidAccessibilityStatesConfig( | CODE |
| LOW | …t-native-gesture-handler/src/__tests__/Errors.test.tsx | 48 | function VirtualDetectorWithNoBoundary() { | CODE |
| LOW | …t-native-gesture-handler/src/__tests__/Errors.test.tsx | 73 | function VirtualDetectorSwallowedRef() { | CODE |
| LOW | …t-native-gesture-handler/src/__tests__/Errors.test.tsx | 124 | function InterceptingDetectorMultipleTypes() { | CODE |
| LOW | …t-native-gesture-handler/src/__tests__/Errors.test.tsx | 213 | function SameGestureTwoVirtualDetectors() { | CODE |
| LOW | …t-native-gesture-handler/src/__tests__/Errors.test.tsx | 237 | function GestureDetectorNoRootView() { | CODE |
| LOW | …t-native-gesture-handler/src/__tests__/Errors.test.tsx | 251 | function GestureDetectorNoRootView() { | CODE |
| LOW | …t-native-gesture-handler/src/__tests__/Errors.test.tsx | 266 | function GestureDetectorNoRootView() { | CODE |
| LOW | …sture-handler/src/__tests__/gestureController.test.tsx | 11 | function mockedContinuousCallbacks() { | CODE |
| LOW | …sture-handler/src/__tests__/gestureController.test.tsx | 40 | function assertGestureControllerTypes(pan: PanGesture, tap: TapGesture) { | CODE |
| LOW | …er/src/__tests__/reanimatedSwipeableCallbacks.test.tsx | 244 | function expectNoSwipeableCallbacks() { | CODE |
| LOW | …act-native-gesture-handler/src/v3/scrollViewInterop.ts | 19 | export function updateResponderEventValue( | CODE |
| LOW | …r/src/v3/components/ScrollViewResponderInterceptor.tsx | 26 | function subscribeToKeyboardVisibility() { | CODE |
| LOW | …r/src/v3/components/ScrollViewResponderInterceptor.tsx | 51 | function unsubscribeFromKeyboardVisibility() { | CODE |
| LOW | …e-gesture-handler/src/v3/hooks/utils/propsWhiteList.ts | 90 | export function applyProductionTestIDFilter() { | CODE |
| LOW | …sture-handler/src/v3/hooks/utils/eventHandlersUtils.ts | 97 | export function touchEventTypeToCallbackType( | CODE |
| LOW | …ative-gesture-handler/src/v3/hooks/utils/eventUtils.ts | 76 | export function checkMappingForChangeProperties(animatedEvent: AnimatedEvent) { | CODE |
| LOW | …ve-gesture-handler/src/v3/hooks/utils/relationUtils.ts | 36 | function makeSimultaneousWithSymmetric( | CODE |
| LOW | …er/src/v3/detectors/useEnsureGestureHandlerRootView.ts | 6 | export function useEnsureGestureHandlerRootView() { | CODE |
| LOW | …-handler/src/v3/detectors/ReanimatedNativeDetector.tsx | 34 | function LeanReanimatedNativeDetector( | CODE |
| LOW | …react-native-gesture-handler/src/v3/detectors/utils.ts | 179 | export function ensureNativeDetectorComponent( | CODE |
| LOW | …handler/src/v3/detectors/useDetectorAttachmentGuard.ts | 13 | export function useDetectorAttachmentGuard(handlerTags: number[]) { | CODE |
| LOW | …e-handler/src/v3/detectors/HostGestureDetector.web.tsx | 150 | function tryAttachNativeHandlersToChildView(refs: DetectorRefs) { | CODE |
| LOW | …tors/VirtualDetector/useInterceptingDetectorContext.ts | 21 | export function useInterceptingDetectorContext() { | CODE |
| LOW | …r/src/v3/detectors/VirtualDetector/VirtualDetector.tsx | 36 | function useRequiredInterceptingDetectorContext() { | CODE |
| LOW | …ges/react-native-gesture-handler/src/handlers/utils.ts | 92 | export function scheduleOperationToBeFlushed(operation: () => void) { | CODE |
| LOW | …tive-gesture-handler/src/handlers/PanGestureHandler.ts | 174 | function validatePanGestureHandlerProps(props: PanGestureHandlerProps) { | CODE |
| LOW | …tive-gesture-handler/src/handlers/PanGestureHandler.ts | 224 | function transformPanGestureHandlerProps(props: PanGestureHandlerProps) { | CODE |
| LOW | …ative-gesture-handler/src/handlers/handlersRegistry.ts | 63 | export function registerOldGestureHandler( | CODE |
| LOW | …ative-gesture-handler/src/handlers/handlersRegistry.ts | 70 | export function unregisterOldGestureHandler(handlerTag: number) { | CODE |
| LOW | …ers/gestures/GestureDetector/refreshesAnimatableRef.ts | 24 | export function reanimatedRefreshesAnimatableRef() { | CODE |
| LOW | …handler/src/handlers/gestures/GestureDetector/utils.ts | 117 | export function checkGestureCallbacksForWorklets(gesture: GestureType) { | CODE |
| LOW | …andlers/gestures/GestureDetector/useAnimatedGesture.ts | 45 | function touchEventTypeToCallbackType(eventType: TouchEventType): CallbackType { | CODE |
| LOW | …rc/new_api/tests/nativeInterceptCancellation/index.tsx | 4 | export default function NativeInterceptCancellationExample() { | CODE |
| LOW | …pi/tests/nativeInterceptCancellation/index.android.tsx | 114 | export default function NativeInterceptCancellationExample() { | CODE |
| LOW | …/src/new_api/tests/keyboardShouldPersistTaps/index.tsx | 44 | export default function KeyboardShouldPersistTapsExample() { | CODE |
| LOW | …pp/src/new_api/tests/rnResponderCancellation/index.tsx | 10 | export default function RNResponderCancellationExample() { | CODE |
| LOW | …ommon-app/src/new_api/showcase/state_manager/index.tsx | 16 | export default function GestureStateManagerExample() { | CODE |
| LOW | apps/common-app/src/console/ConsoleModal.tsx | 286 | function useReactNativeLogBoxVisibility(onSeen: () => void) { | CODE |
| LOW | apps/common-app/src/console/consoleLogs.ts | 135 | export function installConsoleInterceptor() { | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | …onents/rngesturehandler_codegen/ComponentDescriptors.h | 3 | * This code was generated by | COMMENT |
| HIGH | …_codegen/RNGestureHandlerDetectorComponentDescriptor.h | 3 | * This code was generated by | COMMENT |
| HIGH | …rehandler_codegen/RNGestureHandlerDetectorShadowNode.h | 3 | * This code was generated by | COMMENT |
| HIGH | …gesturehandler_codegen/RNGestureHandlerDetectorState.h | 2 | * This code was generated by | COMMENT |
| HIGH | …handler_codegen/RNGestureHandlerDetectorShadowNode.cpp | 3 | * This code was generated by | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …react-native-gesture-handler/apple/RNGestureHandler.mm | 1 | #import "RNGestureHandler.h" | COMMENT |
| LOW | …react-native-gesture-handler/apple/RNGestureHandler.mm | 421 | } | COMMENT |
| LOW | …e-handler/apple/RNGestureHandlerButtonComponentView.mm | 1 | #import "RNGestureHandlerButtonComponentView.h" | COMMENT |
| LOW | …e-handler/apple/RNGestureHandlerButtonComponentView.mm | 201 | // due to nested structure of Button and ComponentView, layout metrics for both | COMMENT |
| LOW | …handler/apple/RNGestureHandlerRootViewComponentView.mm | 1 | #import <React/RCTFabricComponentsPlugins.h> | COMMENT |
| LOW | …/react-native-gesture-handler/apple/RNGestureHandler.h | 1 | #import "RNGHUIKit.h" | COMMENT |
| LOW | …native-gesture-handler/apple/RNGestureHandlerModule.mm | 1 | #import "RNGestureHandlerModule.h" | COMMENT |
| LOW | …es/react-native-gesture-handler/apple/RNGHStylusData.h | 1 | // | COMMENT |
| LOW | …ve-gesture-handler/apple/RNRootViewGestureRecognizer.m | 1 | // | COMMENT |
| LOW | …ative-gesture-handler/apple/RNGestureHandlerManager.mm | 1 | #import "RNGestureHandlerManager.h" | COMMENT |
| LOW | …ative-gesture-handler/apple/RNGestureHandlerManager.mm | 21 | #import <React/RCTViewComponentView.h> | COMMENT |
| LOW | …native-gesture-handler/apple/RNGestureHandlerButton.mm | 1 | // | COMMENT |
| LOW | …native-gesture-handler/apple/RNGestureHandlerButton.mm | 61 | // 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.mm | 1 | #import "RNGestureHandlerDetector.h" | COMMENT |
| LOW | …native-gesture-handler/apple/Handlers/RNHoverHandler.h | 1 | // | COMMENT |
| LOW | …t-native-gesture-handler/apple/Handlers/RNTapHandler.h | 1 | // | COMMENT |
| LOW | …ve-gesture-handler/apple/Handlers/RNLongPressHandler.h | 1 | // | COMMENT |
| LOW | …ive-gesture-handler/apple/Handlers/RNRotationHandler.m | 1 | // | COMMENT |
| LOW | …native-gesture-handler/apple/Handlers/RNPinchHandler.h | 1 | // | COMMENT |
| LOW | …t-native-gesture-handler/apple/Handlers/RNPanHandler.m | 1 | // | COMMENT |
| LOW | …native-gesture-handler/apple/Handlers/RNHoverHandler.m | 1 | // | COMMENT |
| LOW | …ve-gesture-handler/apple/Handlers/RNLongPressHandler.m | 1 | // | COMMENT |
| LOW | …t-native-gesture-handler/apple/Handlers/RNTapHandler.m | 1 | // | COMMENT |
| LOW | …-gesture-handler/apple/Handlers/RNNativeViewHandler.mm | 1 | // | COMMENT |
| LOW | …t-native-gesture-handler/apple/Handlers/RNPanHandler.h | 1 | // | COMMENT |
| LOW | …ive-gesture-handler/apple/Handlers/RNRotationHandler.h | 1 | // | COMMENT |
| LOW | …ve-gesture-handler/src/v3/detectors/NativeDetector.tsx | 41 | const handlerTags = useMemo(() => { | COMMENT |
| LOW | …e-handler/src/v3/detectors/HostGestureDetector.web.tsx | 41 | // one stable object keeps the helpers pure (no closures over component-render-scoped values), | COMMENT |
| LOW | …ers/gestures/GestureDetector/refreshesAnimatableRef.ts | 1 | // Reanimated resolves `getAnimatableRef()` once, when its ref to the wrapped | COMMENT |
| LOW | …/tests/rnResponderCancellation/MultiHandlerExample.tsx | 1 | import React, { useCallback, useRef, useState } from 'react'; | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | apps/common-app/src/common.tsx | 263 | Nam posuere at mi ut porttitor. Vivamus dapibus vehicula mauris, commodo pretium nibh. Mauris turpis metus, vulputate ia | CODE |
| LOW | apps/common-app/src/common.tsx | 263 | Nam posuere at mi ut porttitor. Vivamus dapibus vehicula mauris, commodo pretium nibh. Mauris turpis metus, vulputate ia | CODE |
| LOW | …-app/src/legacy/release_tests/webStylesReset/index.tsx | 50 | <Text style={{ fontSize: 32 }}> Lorem Ipsum </Text> | CODE |
| LOW | …/common-app/src/new_api/tests/webStylesReset/index.tsx | 62 | <Text style={{ fontSize: 32, color: 'white' }}> Lorem Ipsum </Text> | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …tive-gesture-handler/src/v3/hooks/utils/configUtils.ts | 30 | // For composed gestures, we need to check if at least one of the composed gestures is enabled | COMMENT |