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
The idea would be to use aria-label the way accessibilityLabel is for interaction tracking
Background
React Native 0.71.3 added support for "web inspired" prop aliases [docs]
This release includes a number of new props inspired by web standards to align React Native’s APIs across many platforms. These new props are purely additive so there are no expected migrations or change of behavior for equivalent accessibility, behavior, or style props.
For any new prop alias introduced, if there is an existing prop with a different name and both are specified, the new alias prop value will take precedence. For example, this release adds a src prop alias for source on the Image component to align with the src prop on web. If both src and source are provided, the new src prop will be used.
This includes support for aria-label as a prop alias of accessibilityLabel
Note
The RFC and discussion, linked from the docs, may be useful, for additional context
Feature description
The idea would be to use aria-label the way accessibilityLabel is for interaction tracking
Background
React Native 0.71.3 added support for "web inspired" prop aliases [docs]
This includes support for
aria-label
as a prop alias ofaccessibilityLabel
Note
The RFC and discussion, linked from the docs, may be useful, for additional context
Proposed solution
Extend the existing user interactions tracking feature, to support
aria-label
in addition toaccessibilityLabel
https://docs.datadoghq.com/real_user_monitoring/mobile_and_tv_monitoring/setup/reactnative/#user-interactions-tracking
Other relevant information
It may be useful to consider parity with browser RUM, which also includes support for
label
andplaceholder
I think in theory it would be possible but support for these in RN Is not a standard
aria-labelledby
/accessibilityLabelledBy
aria-placeholder*placeholder
*not yet supported
The text was updated successfully, but these errors were encountered: