Repository navigation
Replies: 2 comments
|
I think the There's an open request asking for exactly this on the RN side, from 2023, still unresolved: #490 What React Native actually uses is Which means you don't really need the plugin to change behaviour. You just need both props to carry the same value: const tracked = (id) => ({
testID: id,
accessibilityLabel: id,
});
<Button {...tracked('login-submit')} onPress={handleSubmit} />Your test suite keeps using Worth checking Two caveats, since I'm going off docs rather than the plugin source:
|
|
Your One limitation worth checking is how the prop is written. I tested the published 2.14.9 plugin: <Button testID="login-submit" onPress={handleSubmit}>Login</Button>This produces Put the literal on the tracked JSX component that carries These checks were an isolated Babel transform and the 2.14.9 SDK naming logic, not a native-device/RUM ingestion test. If the literal example still fails, could you share the smallest affected JSX example and your |
Uh oh!
There was an error while loading. Please reload this page.
Hey, we're using
"@datadog/mobile-react-native-babel-plugin": "2.14.9"in our React Native app and want to maketestIDs appear in TAP actions on RUM tab.As babel plugin documentation does not exist, would you mind guiding us on how to achieve it?
This is our current stage of
babel.config.js:Is there anything else required?
All reactions