Skip to Content
DocumentationGuidesError Tracking

Error Tracking

Guide for implementing error tracking in your AppCatalyst RN application using Sentry.

Sentry  is a crash reporting platform that provides you with real-time insight into production deployments with info to reproduce and fix crashes.

Before getting started, make sure to create a Sentry account and set up a new project for your application to obtain the DSN (Data Source Name) required for configuration. Look at our Sentry setup guide for more details.

Verify the configuration

Create a new release build of your app and verify that it uploads source maps correctly. You may want to add a button in your app to test that it is working and sourcemaps are wired up as expected, for example:

import { Button } from 'react-native'; // Inside some component <Button title="Press me" onPress={() => { throw new Error('Hello, again, Sentry!'); }}/>

When you press the button, it should trigger an error that gets reported to Sentry. Check your Sentry dashboard to see if the error appears with the correct stack trace and source maps.

sentry-error-feed-screen

This is an example screenshot of Sentry error feed screen

You can visit the official Sentry documentation  for more advanced configuration options and best practices for using Sentry in your React Native application.