{ "html": "
\n

Installation

\n

Start by adding Sentry and then linking it:

\n
$ npm install react-native-sentry --save\n# or\n# yarn add react-native-sentry\n# if you are using yarn\n# this is for linking\n$ react-native link react-native-sentry\n
\n
\n

The link step will pull in the native dependency and patch your project\naccordingly. If you are using expo you don’t have to (or can’t) run that\nlink step. For more information about that see Using Sentry with Expo.

\n

On linking you will automatically be prompted for your DSN and other\ninformation and we will configure your app automatically for react-native\nand change files accordingly. You will need to provide the following\ndata: your DSN, the slug of your organization in Sentry, the slug of your\nproject in Sentry as well as the Auth token. We need the Auth token for\nuploading the sourcemaps.

\n

You can find the slugs in the URL of your project\n(sentry.io/your-org-slug/your-project-slug) If you don’t have an auth\ntoken yet you can create an auth token here.

\n

Upon linking the following changes will be performed:

\n\n

To see what is happening during linking you can refer to\nManual Setup which will give you all the details.

\n

Note that we only support react-native >= 0.38 at the moment.

\n
\n\n\n
\n

Client Configuration

\n

Note: When you run react-native link we will automatically update your\nindex.ios.js / index.android.js with the following changes:

\n
import { Sentry } from 'react-native-sentry';\nSentry.config('___DSN___').install();\n
\n
\n

You can pass additional configuration options to the config() method if\nyou want to do so.

\n
\n", "link": "https://docs.getsentry.com/platforms/apple/", "id": "apple", "name": "Apple" }