# React Native events no reaching Dynatrace Platform

**URL:** <https://community.dynatrace.com/t/react-native-events-no-reaching-dynatrace-platform/56521>\
**Category:** Real User Monitoring\
**Tags:** react-native, android, mobile-monitoring\
**Created:** [July 21, 2026, 7:06pm UTC](https://community.dynatrace.com/t/react-native-events-no-reaching-dynatrace-platform/56521 "2026-07-21T19:06:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lucas087](https://avatars.discourse-cdn.com/v4/letter/l/97f17d/32.png) [@Lucas087](https://community.dynatrace.com/u/Lucas087)\
**Post date:** [July 21, 2026, 7:06pm UTC](https://community.dynatrace.com/t/react-native-events-no-reaching-dynatrace-platform/56521/1 "2026-07-21T19:06:12Z")

</div>

I have a React Native app with the following configuration:

dynatrace.config.js:

```javascript
module.exports = {
react: {
debug: true,
lifecycle: {
/**
* Decide if you want to see Update Cycles as well
*/
includeUpdate: false,

/**
* Filter for Instrumenting Lifecycle of Components / True = Will be instrumented
*/
instrument: (filename) => {
return false;
},
},
input: {
/**
* Allows you to filter the instrumentation for touch events, refresh events and picker events in certain files
* True = Will be instrumented
*/
instrument: (filename) => {
return true;
},
},
},
android: {
// Those configs are copied 1:1
config: `
dynatrace {
configurations {
defaultConfig {
autoStart {
applicationId 'XXXXXXXXXXXXXXXXXXXXX'
beaconUrl 'https://XXXXXXX.bf.dynatrace.com/mbeacon'
}
userOptIn true
agentBehavior.startupLoadBalancing true
agentBehavior.startupWithGrailEnabled true
sessionReplay.enabled false
}
}
}
`,
},
ios: {
// Those configs are copied 1:1
config: `
<key>DTXApplicationID</key>
<string>XXXXXXXXXXXXXXXXXXXXX</string>
<key>DTXBeaconURL</key>
<string>https://XXXXXXX.bf.dynatrace.com/mbeacon</string>
<key>DTXLogLevel</key>
<string>ALL</string>
<key>DTXUserOptIn</key>
<true/>
<key>DTXStartupLoadBalancing</key>
<true/>
<key>DTXStartupWithGrailEnabled</key>
<true/>
`,
},
};

```

Within the babel.config.js configuration I have:

```markup
module.exports = {
presets: ['module:@react-native/babel-preset'],
plugins: ['react-native-reanimated/plugin', '@dynatrace/react-native-plugin/instrumentation/BabelPluginDynatrace']
};

```

In my build.gradle file I have:

```markup
buildscript {
ext {
buildToolsVersion = "35.0.0"
minSdkVersion = 24
compileSdkVersion = 35
targetSdkVersion = 35
ndkVersion = "28.0.12433566"
kotlinVersion = "2.0.21"

androidXAnnotation = "1.2.0"
androidXBrowser = "1.8.0"
}
repositories {
google()
mavenCentral()
flatDir {
dirs 'libs'
}
}
dependencies {
classpath("com.android.tools.build:gradle")
classpath("com.facebook.react:react-native-gradle-plugin")
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion")
classpath 'com.google.gms:google-services:4.4.1'
classpath "com.dynatrace.tools.android:gradle-plugin:8.341.1.1004"
}
}
apply plugin: "com.facebook.react.rootproject"

```

The functions I have defined to use within the app are:

```javascript
export const dynatraceStart = () => {
const privacyConfig = new UserPrivacyOptions(DataCollectionLevel.Performance, true);
Dynatrace.applyUserPrivacyOptions(privacyConfig);
};

export const dynatraceReportString = (actionName: string, actionValue: string) => {
const myAction = Dynatrace.enterManualAction(actionName);
myAction.reportStringValue(actionName, actionValue);
myAction.leaveAction();
};

export const dynatraceAsyncReportString = async (actionName: string, actionValue: string) => {
setTimeout(() => {
const myAction = Dynatrace.enterManualAction(actionName);
myAction.reportStringValue(actionName, actionValue);
myAction.leaveAction();
}, 1500);
};

export const dynatraceReportEvent = (eventName: string) => {
const myAction = Dynatrace.enterManualAction(eventName);
myAction.reportEvent(eventName);
myAction.leaveAction();
};

export const dynatraceReportError = (errorName: string, errorCode: number) => {
const myAction = Dynatrace.enterManualAction(errorName);
myAction.reportError(errorName, errorCode);
myAction.leaveAction();
};

export const dynatraceReportCrash = (crashName: string, reason: string, stacktrace: string) => {
Dynatrace.reportCrash(crashName, reason, stacktrace);
};

export const dynatraceReportCrashwithException = (crashName: string, crash: Error) => {
Dynatrace.reportCrashWithException(crashName, crash);
};

export const withMonitoringDynatrace = (Component: any) => {
Dynatrace.withMonitoring(Component);
};

export const dynatraceIdentifyUser = (user: string) => {
Dynatrace.identifyUser(user);
};

export const dynatraceGeolocation = (latitude: number, longitude: number) => {
Dynatrace.setGPSLocation(latitude, longitude);
};

export const dynatraceEndSession = () => {
Dynatrace.endSession();
};

```

This configuration correctly reported events to the Dynatrace platform when I had React Native version 0.71. When I updated React Native to 0.78.3 and enabled the new React Native architecture, events stopped reaching the Dynatrace web platform on Android. The Metro console shows that the Dynatrace plugin is responding to user events, BUT those user events are NOT reaching the platform. What could be happening?

---

<div class="post-metadata">

**Author:** ![Patrick\_H](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/patrick_h/32/37540_2.png) [@Patrick\_H](https://community.dynatrace.com/u/Patrick_H)\
**Post date:** [August 4, 2026, 6:29am UTC](https://community.dynatrace.com/t/react-native-events-no-reaching-dynatrace-platform/56521/2 "2026-08-04T06:29:41Z")

</div>

Please reach out to [Dynatrace Support](https://support.dynatrace.com) for such issues.

---

<div class="post-metadata">

**Author:** ![Lucas087](https://avatars.discourse-cdn.com/v4/letter/l/97f17d/32.png) [@Lucas087](https://community.dynatrace.com/u/Lucas087)\
**Post date:** [August 7, 2026, 8:51pm UTC](https://community.dynatrace.com/t/react-native-events-no-reaching-dynatrace-platform/56521/3 "2026-08-07T20:51:38Z")

</div>

Thank you! I managed to solve it! For some reason in my app, when I tried to apply npx instrumentDynatrace, inside, it didn’t apply all the changes inside my android/build.gradle. When I fixed that, the problem disappeared.

Thank you for your time!
