Skip to content

Touch breadcrumbs lost on New Architecture from RN 0.88 (_targetInst missing) #7009

Closed

Description

@antonis

Problem

TouchEventBoundary appears to stop recording touch breadcrumbs on the New Architecture from React Native 0.88.

enableNativeEventTargetEventDispatching defaults to true from RN 0.88 (it was false in 0.87). With the flag on, Fabric dispatches events through dispatchNativeEvent and hands handlers a LegacySyntheticEvent, which has no _targetInst.

_onTouchStart in packages/core/src/js/touchevents.tsx returns early when _targetInst is missing, so nothing is logged and there is no error. Rage tap detection in the same file is probably affected too.

Our tests don't catch this because touchevents.test.tsx mocks _targetInst directly.

Status

Found by reading the RN 0.87, 0.88.1 and 0.89.0-rc.1 sources. Not reproduced on a device yet.

Proposed fix

Fall back to the fiber on the event target when _targetInst is absent: e.target?.__internalInstanceHandle. ReactNativeElement sets this field in both 0.88 and 0.89. It is a private RN field, so the read should be defensive and keep _targetInst as the first choice for older versions.

Acceptance criteria

  • Reproduced on the RN 0.88.1 sample on iOS and Android
  • Touch breadcrumbs include the component path and labels with enableNativeEventTargetEventDispatching on
  • Mask boundary handling for sentry-label and text extraction still works on the new path
  • Tests cover an event with no _targetInst

Activity

  1. self-assigned this
    on Nov 10, 2026
  2. linear-code commented on Nov 10, 2026

    @linear-code
  3. github-actions commented on Nov 12, 2026

    @github-actions
    Contributor

    A PR closing this issue has just been released 🚀

    This issue was referenced by PR #7013, which was included in the 8.35.0 release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions