Skip to content

[V2] feat: Handle wrapped onPress event in DdEventsInterceptor for react-native-ui-lib compatibility#1165

Closed
sbarrio wants to merge 623 commits intofeature/v2from
hugo.silva/events-interceptor-action
Closed

[V2] feat: Handle wrapped onPress event in DdEventsInterceptor for react-native-ui-lib compatibility#1165
sbarrio wants to merge 623 commits intofeature/v2from
hugo.silva/events-interceptor-action

Conversation

@sbarrio
Copy link
Contributor

@sbarrio sbarrio commented Mar 2, 2026

What does this PR do?

Clone of #1164 aimed towards feature/v2

sbarrio and others added 30 commits January 16, 2026 16:08
add account info to `applyEventMapper`
Preserve user baggage header when setting session ID

Enforced W3 specification for 'baggage' header

Only inject Session ID header if propagator=Datadog|W3C

Additional test for baggage header and minor warn message improvement
yugisu-flux and others added 25 commits February 16, 2026 11:09
Revert "FFL-900 Flags SDK"

Co-authored-by: yugisu-flux <86969397+yugisu-flux@users.noreply.github.com>
Co-authored-by: dmytrii.puzyr <dmytrii.puzyr@datadoghq.com>
…flags' into dima/readable-errors-in-flags-sdk
Update error messages to be more readable in the iOS Flags SDK
…-comments

[CHORE] Update OpenFeature README
[RELEASE] React Native SDK v3.1.0
…dule-fix-for-3.5.0

[Fix][Benchmarks] Missing sdkCore when creating DatadogVitalsMeter
…itals-collection-to-3.5.0

[Fix][Benchmarks] Update iOS Benchmark Vitals to be compatible with native iOS SDK v3.5.0
[FIX] Missing events in Expo caused by wrong singleton usage
Some third-party libraries (e.g. react-native-ui-lib) change the onPress
callback signature by wrapping the native GestureResponderEvent inside a
props object: onPress({...componentProps, event: GestureResponderEvent}).

The SDK checks args[0]._targetInst to identify the tapped element, which
only exists on the native event — not on the wrapper object — causing
actions to be silently dropped.

This adds a fallback in DdEventsInterceptor.interceptOnPress that checks
args[0].event._targetInst when args[0]._targetInst is not present,
allowing the SDK to extract the native event from the wrapper.
@sbarrio sbarrio requested review from a team as code owners March 2, 2026 16:23
@sbarrio sbarrio changed the title feat: Handle wrapped onPress event in DdEventsInterceptor for react-native-ui-lib compatibility [V2] feat: Handle wrapped onPress event in DdEventsInterceptor for react-native-ui-lib compatibility Mar 2, 2026
@sbarrio sbarrio closed this Mar 2, 2026
@sbarrio sbarrio deleted the hugo.silva/events-interceptor-action branch March 4, 2026 09:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants