# App Crash After React Native Instrumentation

**URL:** <https://community.dynatrace.com/t/app-crash-after-react-native-instrumentation/42838>\
**Category:** Open Q&A\
**Tags:** react, mobile-monitoring\
**Created:** [November 26, 2023, 11:53pm UTC](https://community.dynatrace.com/t/app-crash-after-react-native-instrumentation/42838 "2023-11-26T23:53:27Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![agylpradipta](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/agylpradipta/32/15511_2.png) [@agylpradipta](https://community.dynatrace.com/u/agylpradipta)\
**Post date:** [November 26, 2023, 11:53pm UTC](https://community.dynatrace.com/t/app-crash-after-react-native-instrumentation/42838/1 "2023-11-26T23:53:27Z")

</div>

Hello All,

I just experiencing this issue after instrumenting my react native app:

 ![agylpradipta_0-1701042774263.png](https://global.discourse-cdn.com/dynatrace/original/2X/a/a1a67d3b83a07a2d00445480c6f45fa71d0e257a.png)

Is there any idea how to solve this? Before this my app works smoothly.

Thank you.

---

<div class="post-metadata">

**Author:** ![radek\_jasinski](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/radek_jasinski/32/10432_2.png) [@radek\_jasinski](https://community.dynatrace.com/u/radek_jasinski)\
**Post date:** [November 27, 2023, 3:54am UTC](https://community.dynatrace.com/t/app-crash-after-react-native-instrumentation/42838/2 "2023-11-27T03:54:21Z")

</div>

Hi&nbsp;[@agylpradipta](https://community.dynatrace.com/user/58496)

How did you perform the instrumentation? Please send what documentation you used.

Radek

---

<div class="post-metadata">

**Author:** ![agylpradipta](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/agylpradipta/32/15511_2.png) [@agylpradipta](https://community.dynatrace.com/u/agylpradipta)\
**Post date:** [November 27, 2023, 4:20am UTC](https://community.dynatrace.com/t/app-crash-after-react-native-instrumentation/42838/3 "2023-11-27T04:20:43Z")

</div>

This is documentation I refer to: [Instrument mobile apps with Dynatrace React Native plugin in RUM Classic — Dynatrace Docs](https://docs.dynatrace.com/docs/platform-modules/digital-experience/mobile-applications/development-frameworks/react-native)

But if I tried to run my app from Android error this happened:

 ![agylpradipta_0-1701058797199.png](https://global.discourse-cdn.com/dynatrace/original/2X/2/2f9a0350632cc779be0a5f3d331016c95d342178.png)

Cannot read property ‘DATA\_COLLECTION\_OFF’ of null

Any idea on how to resolve this issue?

Thank you in advance.

---

<div class="post-metadata">

**Author:** ![agylpradipta](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/agylpradipta/32/15511_2.png) [@agylpradipta](https://community.dynatrace.com/u/agylpradipta)\
**Post date:** [November 27, 2023, 6:30am UTC](https://community.dynatrace.com/t/app-crash-after-react-native-instrumentation/42838/4 "2023-11-27T06:30:14Z")

</div>

Issue resolved with this solution:

**Run metro server**

npm run --reset-cache

need to reset the cache after add Dynatrace Instrumentation

---

<div class="post-metadata">

**Author:** ![radek\_jasinski](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/radek_jasinski/32/10432_2.png) [@radek\_jasinski](https://community.dynatrace.com/u/radek_jasinski)\
**Post date:** [November 27, 2023, 8:03am UTC](https://community.dynatrace.com/t/app-crash-after-react-native-instrumentation/42838/5 "2023-11-27T08:03:33Z")

</div>

Great:)
