> ## Documentation Index
> Fetch the complete documentation index at: https://docs.shipmobilefast.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Sentry

> Set up Sentry for error tracking

<Frame>
  <img src="https://mintcdn.com/shipmobilefast-51a499dc/rNBXOQ08cKXtmr3A/images/header/sentry.png?fit=max&auto=format&n=rNBXOQ08cKXtmr3A&q=85&s=73500585404ee3167fd92782f62ed519" alt="Sentry" className="w-full h-full rounded-xl" width="700" height="320" data-path="images/header/sentry.png" />
</Frame>

We are using [Sentry](https://sentry.io/) to track errors.

## Quick Start

<Steps>
  <Step>
    First, go to the [Sentry](https://sentry.io/) and create a account.
  </Step>

  <Step>
    After you create your account, click start button.

    <Frame>
      <img src="https://mintcdn.com/shipmobilefast-51a499dc/0OITnrSFpxUQjTf4/images/sentry/sentry1.png?fit=max&auto=format&n=0OITnrSFpxUQjTf4&q=85&s=6c4b4df03e3e6866d28a21f1d27e92a1" alt="Sentry New Project" className="rounded-2xl w-full" width="840" height="627" data-path="images/sentry/sentry1.png" />
    </Frame>
  </Step>

  <Step>
    After you click start button, you will see this screen.
    Pick React Native and go to next step.

    <Frame>
      <img src="https://mintcdn.com/shipmobilefast-51a499dc/0OITnrSFpxUQjTf4/images/sentry/sentry2.png?fit=max&auto=format&n=0OITnrSFpxUQjTf4&q=85&s=da2c4d5af45c4dd27ad3ffcf46d22fea" alt="Sentry New Project" className="rounded-2xl w-full" width="967" height="745" data-path="images/sentry/sentry2.png" />
    </Frame>
  </Step>

  <Step>
    After you click next, you will see this screen.

    <Info>
      You don't need to install anything.
    </Info>

    <Frame>
      <img src="https://mintcdn.com/shipmobilefast-51a499dc/0OITnrSFpxUQjTf4/images/sentry/sentry3.png?fit=max&auto=format&n=0OITnrSFpxUQjTf4&q=85&s=aa95c55b6015256ea6966461ace6aaa4" alt="Sentry New Project" className="rounded-2xl w-full" width="948" height="826" data-path="images/sentry/sentry3.png" />
    </Frame>

    Just copy your dsn: `...` and paste it here:

    ```tsx app/_layout.tsx theme={null}
    import * as Sentry from '@sentry/react-native';

    Sentry.init({
      dsn: 'your-sentry-dsn-here',
      tracesSampleRate: 1.0,
      _experiments: {
        profilesSampleRate: 1.0,
      },
    });
    ```
  </Step>

  <Step>
    After you paste your dsn, go to the bottom of the app/\_layout.tsx file and change this:

    ```tsx app/_layout.tsx theme={null}
    export default Sentry.wrap(App);
    ```
  </Step>
</Steps>

<Check>
  Thats it. You are done.
</Check>
