You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Touch breadcrumbs lost on New Architecture from RN 0.88 (_targetInst missing) #7009
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
Activity
linear-code commentedon Nov 10, 2026
RN-851
github-actions commentedon Nov 12, 2026
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.