Skip to content
PluginStats

@datadog/mobile-react-native-babel-plugin weekly downloads statistics

By datadog (10 listings) · npm · Babel plugins

A Babel plugin that enhances Datadog's React Native SDK by automatically enriching React components with contextual metadata.

View on npm Stale · Oct 18, 2026

@datadog/mobile-react-native-babel-plugin has 35,337 recorded weekly downloads on npm, a decrease of 60.6% over the past 30 days, ranking #655 of 2,391 tracked listings.

Weekly downloads
35,337
Official API · Oct 18, 2026
7-day growth
-50.9%
-36.6K weekly downloads
30-day growth
-60.6%
-54.4K weekly downloads
90-day growth
-47.3%
-31.7K weekly downloads
Rank
#655
Among tracked npm listings

About @datadog/mobile-react-native-babel-plugin

Babel Plugin for React Native

The @datadog/mobile-react-native-babel-plugin enhances the Datadog React Native SDK by automatically enriching React components with contextual metadata. This helps improve the accuracy of features such as RUM Action tracking and Session Replay.

Setup

Note: Make sure you've already integrated the Datadog React Native SDK.

To install with NPM, run:

npm install @datadog/mobile-react-native-babel-plugin

To install with Yarn, run:

yarn add @datadog/mobile-react-native-babel-plugin

Configure Babel

Add the plugin to your Babel configuration. Depending on your setup, you might be using a babel.config.js, .babelrc, or similar.

Example configuration:

module.exports = {
  presets: ['module:@react-native/babel-preset'],
  plugins: ['@datadog/mobile-react-native-babel-plugin'] // <-- Add here
};
Configuration Options

You can configure the plugin to adjust how it processes your code, giving you control over its behavior and allowing you to tailor it to your project’s needs.

Top-level options
OptionTypeDefaultDescription
actionNameAttributestring–The chosen attribute name to use for action names.
sessionReplayobject–Session Replay configuration.
componentsobject–Component tracking configuration.

sessionReplay options
OptionTypeDefaultDescription
svgTrackingbooleanfalseWhether to track SVG assets in the context of Session Replay.

components options
OptionTypeDefaultDescription
useContentbooleantrueWhether to use component content (for example: children, props) as the action name.
useNamePrefixbooleantrueWhether to prefix actions with the component name.
trackedarray–List of component-specific tracking configs.

components.tracked[] (per component)

Each entry in the tracked array is an object with the following shape:

OptionTypeDefaultDescription
namestring–The component name to track (e.g., Button).
useContentbooleaninherits from globalOverride useContent for this component.
useNamePrefixbooleaninherits from globalOverride useNamePrefix for this component.
contentPropstring–Property name to use for content instead of children (for example: "subTitle").
handlersarray–List of event/action pairs to track.

components.tracked[].handlers[]
FieldTypeDescription
eventstringThe event name to intercept (such as "onPress").
actionstringThe RUM action name to associate with this event. (Only "TAP" actions are currently supported)

Example configuration (using configuration options):

module.exports = {
  presets: ['module:@react-native/babel-preset'],
  plugins: [
    [
      '@datadog/mobile-react-native-babel-plugin',
      {
        actionNameAttribute: 'custom-prop-value',
        sessionReplay: {
          svgTracking: true
        },
        components: {
          useContent: true,
          useNamePrefix: true,
          tracked: [
            {
              name: 'CustomButton',
              contentProp: 'text'
              handlers: [{event: 'onPress', action: 'TAP'}],
            },
            {
              name: 'CustomTextInput',
              handlers: [{event: 'onFocus', action: 'TAP'}],
            },
            {
              useNamePrefix: false,
              useContent: false,
              name: 'Tab',
              handlers: [{event: 'onChange', action: 'TAP'}],
            },
          ],
        },
      },
    ],
  ],
};

Troubleshooting

Note: If you're on an older React Native version, and using Typescript in your project, you may need to install the preset @babel/preset-typescript.

To install with NPM, run:

npm install @babel/preset-typescript

To install with Yarn, run:

yarn add @babel/preset-typescript 

Then update your Babel configuration file like using the following example:

module.exports = {
  presets: [
    'module:@react-native/babel-preset',
    '@babel/preset-typescript' // <-- Add here
  ],
  plugins: ['@datadog/mobile-react-native-babel-plugin']
};

Description from the npm listing.

  • babel
  • babel-plugin
  • plugin
  • datadog
  • react-native

README badge

Show your rank in a README or on your website. The badge updates automatically.

Charts

Images: 30d · 1y · all time · 1600×900 dark

Adoption over time

@datadog/mobile-react-native-babel-plugin weekly downloads on npm, last 90 days: 35,337 weekly downloads as of Oct 18, 2026, -47.3% over 90 days.@datadog/mobile-react-native-babel-plu…Weekly downloads on npm · Last 90 days35,337downloads / week-47.3% over 90 days020K40K60K80K100K120K140KJul 20Aug 4Aug 19Sep 3Sep 18Oct 3Oct 18downloads / weekobservedarchived (Internet Archive)no observationsJul 23, 2026 – Oct 18, 2026 · 88 observations · Updated Oc…pluginstats.com
@datadog/mobile-react-native-babel-plugin weekly downloads on npm, last 90 days: 35,337 weekly downloads as of Oct 18, 2026, -47.3% over 90 days.

7/30/90-day growth

@datadog/mobile-react-native-babel-plugin weekly downloads growth on npm: -50.9% over 7 days, -60.6% over 30 days, -47.3% over 90 days.@datadog/mobile-react-native-babel-plu…Weekly downloads growth on npm35,337downloads / week now7-day growth-36,566 weekly downloads-50.9%30-day growth-54,419 weekly downloads-60.6%90-day growth-31,740 weekly downloads-47.3%Growth vs. nearest observation to each baseline date · Updated Oct 18, 2026pluginstats.com
@datadog/mobile-react-native-babel-plugin weekly downloads growth on npm: -50.9% over 7 days, -60.6% over 30 days, -47.3% over 90 days.

Ranking history

@datadog/mobile-react-native-babel-plugin npm ranking history: currently #655 (by weekly downloads).@datadog/mobile-react-native-babel-plu…npm ranking · by weekly downloads · Last 90 days#655current rank#648#650#652#654#656#658Jul 23Aug 7Aug 22Sep 6Sep 21Oct 6Oct 21rankOct 18, 2026 – Oct 21, 2026 · 4 observations · Updated Oct 18, 2026pluginstats.com
@datadog/mobile-react-native-babel-plugin npm ranking history: currently #655 (by weekly downloads).

Listing placement

All npm2,389 listings · 120 pages · 1,195 shown · page 33, #15 (overall #655)
All npm: every listing in weekly downloads order

Listing placement

Babel plugins252 listings · 13 pages · page 13, #6 (overall #246)
Babel plugins: every listing in weekly downloads order

Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.

Each band is one page of 20. Weekly downloads on a linear scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.

Recent observations

Full history (122)
Recent weekly downloads observations for @datadog/mobile-react-native-babel-plugin
Date (UTC)Weekly downloadsChange vs. previous
35,337+3.1K
32,250-2.3K
34,591+520
34,071-18.4K
52,450-19.9K
72,3000
72,300+397
71,903-2.1K
74,001-2.8K
76,754-579
77,333+2K
75,311+3.4K
71,925-17K
88,889—

Data source

Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.

Listing: https://www.npmjs.com/package/@datadog/mobile-react-native-babel-plugin. First seen Oct 16, 2026; last successful collection Oct 21, 2026. See the methodology.