Install and configure Sentry in React Native projects using the official wizard CLI.
Works with
AI-first code editor with Composer
Before installing skills in Cursor, ensure your development environment meets these requirements:
node --versionsentry-react-native-setupExecute the skills CLI command in your project's root directory to begin installation:
Fetches sentry-react-native-setup from getsentry/sentry-agent-skills and configures it for Cursor.
The CLI shows a list of agents. Use arrow keys and space to select Cursor:
Confirm successful installation by checking the skill directory location:
Restart Cursor to activate sentry-react-native-setup. Access via /sentry-react-native-setup in your agent's command palette.
We perform automated surface-level scans (Gen AI Scanner, Socket, Snyk) during installation. These checks detect common vulnerabilities but do not guarantee complete security. Always review skill source code and verify the publisher's reputation before production use.
Skills execute code in your environment. Always review source, verify the publisher, and test in isolation before production.
Submit your Claude Code skill and start earning
Automate repetitive workflows and reduce manual effort
Example
Generate reports, summarize documents, draft communications
Save 3-5 hours per week on routine tasks
Learn new skills, understand complex topics, get expert guidance
Example
Explain concepts, provide examples, suggest learning resources
Accelerate learning and skill development by 2x
Enhance output quality through reviews, suggestions, and refinements
Example
Review drafts, suggest improvements, catch errors
Improve work quality by 30-40% with less effort
0
total installs
0
this week
19
GitHub stars
0
upvotes
Run in your terminal
0
installs
0
this week
19
stars
Install and configure Sentry in React Native projects using the official wizard CLI.
Important: The configuration options and code samples below are examples. Always verify against docs.sentry.io before implementing, as APIs and defaults may have changed.
npx @sentry/wizard@latest -i reactNative
| Task | Description |
|---|---|
| Install SDK | Adds @sentry/react-native package |
| Metro config | Adds @sentry/react-native/metro to metro.config.js |
| Expo config | Adds @sentry/react-native/expo to app.json |
| Android setup | Enables Gradle build step for source maps |
| iOS setup | Wraps Xcode build phase, adds debug symbol upload |
| Pod install | Runs pod install for iOS |
| Credentials | Stores in ios/sentry.properties, android/sentry.properties, env.local |
| Init code | Configures Sentry in App.tsx or _layout.tsx |
If not using wizard, add to your app entry point:
import * as Sentry from "@sentry/react-native";
Sentry.init({
dsn: "YOUR_SENTRY_DSN",
sendDefaultPii: true,
// Tracing
tracesSampleRate: 1.0,
// Logs
enableLogs: true,
// Profiling
profilesSampleRate: 1.0,
// Session Replay
replaysOnErrorSampleRate: 1.0,
replaysSessionSampleRate: 0.1,
integrations: [Sentry.mobileReplayIntegration()],
});
export default Sentry.wrap(App);
For Expo, follow the Expo-specific setup:
npx @sentry/wizard@latest -i reactNative
Works for both managed and bare Expo projects.
| Option | Description | Default |
|---|---|---|
dsn |
Sentry DSN | Required |
sendDefaultPii |
Include user data | false |
tracesSampleRate |
% of transactions traced | 0 |
profilesSampleRate |
% of traces profiled | 0 |
enableLogs |
Send logs to Sentry | false |
replaysOnErrorSampleRate |
% of error sessions replayed | 0 |
replaysSessionSampleRate |
% of all sessions replayed | 0 |
| File | Purpose |
|---|---|
App.js / _layout.tsx |
Sentry initialization |
metro.config.js |
Metro bundler config |
app.json |
Expo config (if Expo) |
ios/sentry.properties |
iOS build credentials |
android/sentry.properties |
Android build credentials |
env.local |
Environment variables |
SENTRY_DSN=https://[email protected]/456
SENTRY_AUTH_TOKEN=sntrys_xxx
SENTRY_ORG=my-org
SENTRY_PROJECT=my-project
Add test error:
throw new Error("My first Sentry error!");
Or use a test button:
<Button title="Test Sentry" onPress={() => { throw new Error("Test"); }} />
Source maps are automatically uploaded during build when wizard configures:
| Issue | Solution |
|---|---|
| Wizard fails | Try manual setup, check Node version |
| iOS build fails | Run cd ios && pod install |
| Source maps not uploading | Verify sentry.properties files have auth token |
| Expo errors | Ensure using compatible Expo SDK version |
| App not wrapped | Add export default Sentry.wrap(App) |
Prerequisites
Time Estimate
15-45 minutes depending on use case complexity
Steps
Common Pitfalls
✓ Do
✗ Don't
💡 Pro Tips
✓ Use when
Use when skill capabilities match your task, clear ROI on time saved, and you can validate outputs. Best for repetitive tasks, learning, and quality improvement.
✗ Avoid when
Avoid when task requires deep expertise you can't validate, involves sensitive decisions, or when learning process is more valuable than speed of completion.
asyrafhussin/agent-skills
anthropics/claude-code
mblode/agent-skills
github/awesome-copilot
leonxlnx/taste-skill
sickn33/antigravity-awesome-skills
sentry-react-native-setup has been reliable in day-to-day use. Documentation quality is above average for community skills.
sentry-react-native-setup reduced setup friction for our internal harness; good balance of opinion and flexibility.
We added sentry-react-native-setup from the explainx registry; install was straightforward and the SKILL.md answered most questions upfront.
sentry-react-native-setup fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.
We added sentry-react-native-setup from the explainx registry; install was straightforward and the SKILL.md answered most questions upfront.
sentry-react-native-setup reduced setup friction for our internal harness; good balance of opinion and flexibility.
sentry-react-native-setup fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.
Keeps context tight: sentry-react-native-setup is the kind of skill you can hand to a new teammate without a long onboarding doc.
sentry-react-native-setup is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.
sentry-react-native-setup has been reliable in day-to-day use. Documentation quality is above average for community skills.
showing 1-10 of 34