---
title: react-native-agent-190
source: https://docs.newrelic.com/docs/release-notes/mobile-release-notes/react-native-release-notes/react-native-agent-190
---

> #### ⚠️ BREAKING CHANGE IN ERROR REPORTING
>
> Starting with version 1.9.0, JavaScript errors are reported through a new event type: `MobileJSError`. With the new Mobile Errors Protocol, React Native JavaScript errors are no longer stored in the `MobileHandledException` event type.
>
> **Action required:**
>
> -   **Alerts:** Update your NRQL alert conditions to target `MobileJSError`.
> -   **Dashboards:** Update any custom charts that query `MobileHandledException` for JavaScript-layer errors.
> -   **Symbolication:** Update your build scripts to the latest version to support source map uploads for the new event type. See [React Native JavaScript error reporting](https://docs.newrelic.com/docs/mobile-monitoring/new-relic-monitoring-react-native/react-native-agent-js-error-reporting).
>
>     Update your queries as follows:
>
>     ```sql
>     -- Before (1.8.x and lower)
>     SELECT count(*) FROM MobileHandledException WHERE platform = 'reactnative'
>
>     -- After (1.9.0 and higher)
>     SELECT count(*) FROM MobileJSError
>     ```

## Improvements

-   JavaScript errors and unhandled promise rejections are now reported as a first-class `MobileJSError` event type via the new Mobile Errors Protocol, instead of `MobileHandledException`.
-   Added source map upload support for symbolicating `MobileJSError` stack traces (automatic, manual, and CodePush/OTA). See [React Native JavaScript error reporting](https://docs.newrelic.com/docs/mobile-monitoring/new-relic-monitoring-react-native/react-native-agent-js-error-reporting).
-   Added the `jsErrorReportingEnabled` configuration option to enable or disable JavaScript error reporting (enabled by default).
-   `recordError` now accepts optional `isFatal` and `attributes` arguments, letting you mark an error as fatal or attach custom attributes.
-   Updated the native Android agent to version 7.8.2.
-   Updated the native iOS agent to version 7.7.6.
