This guide sets up Sentry via the official AI wizard. The wizard automatically configures your app with all necessary error tracking settings.
Step 1: Run the Sentry Wizard
1
Launch the wizard
In your project root directory, run the following command:
2
Set up your account
During the wizard setup:
- Choose Sign up if you don’t have a Sentry account yet
- If you already have an account, choose Log in
3
Select your platforms
Use arrow keys to navigate and press spacebar to select which platforms you want to set up (iOS, Android, or both).
The wizard will install dependencies and update the relevant files, configuring Sentry error tracking in your codebase.
Step 2: Test the Implementation
1
Implementation
Follow the implementation instructions in the
integrations/sentry/README.md
file included in your boilerplate codebase. This file contains all necessary steps for testing Sentry in your application, including the test button component.2
Test the integration
Once you’ve followed the README instructions:
- Restart your app
- Use the test Sentry button component as described in the README
- Log in to your Sentry dashboard
- Go to the Issues section
- Confirm that your test errors appear in the dashboard
Testing Your Configuration
To verify that Sentry is working correctly:- Test Error Reporting: Use the test button to generate a test error
- Check Dashboard: Verify the error appears in your Sentry dashboard
- Test Different Error Types: Try different types of errors (JavaScript, native, etc.)
- Verify Environment: Ensure errors are tagged with the correct environment (development, production)