Skip to content

Commit

Permalink
fix: edit readme to add sentry section
Browse files Browse the repository at this point in the history
  • Loading branch information
vucinatim committed Apr 17, 2024
1 parent 56e3fe0 commit e149438
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ Welcome to `react-native-template` 👋, the go-to template for building mobile
- [Zustand State Management](#8-zustand-state-management)
- [CI/CD Workflow Configuration](#9-cicd-workflow-configuration)
- [Infisical Environment Variable Support](#10-infisical-environment-variable-support)
- [Sentry Integration](#11-sentry-integration)
5. [Included Packages and Their Benefits](#included-packages-and-their-benefits)
- [Zod](#zod)
- [Lottie-React-Native](#lottie-react-native)
Expand Down Expand Up @@ -261,6 +262,23 @@ Incorporate environment variables securely using the Infisical service with a cu

<a name="included-packages-and-their-benefits"></a>

### 11. Sentry Integration 🦉

Integrate Sentry for error monitoring and tracking in your application. The template includes a pre-configured setup for Sentry, allowing you to easily track and resolve issues in your app.

```typescript
import * as Sentry from 'sentry-expo';

Sentry.init({
debug: true,
dsn: process.env.EXPO_PUBLIC_SENTRY_DSN,
environment: process.env.EXPO_PUBLIC_SENTRY_ENV,
...
});
```

These environment variables are injected into the build process using the Infisical service, ensuring that sensitive information is kept secure.

### Included Packages and Their Benefits 📦

The `react-native-template` includes several packages that extend its capabilities and enrich the development experience. Here’s a brief overview of these packages and what they offer:
Expand Down

0 comments on commit e149438

Please sign in to comment.