@allstak/react-native
v0.5.8
Published
AllStak React Native SDK — standalone error tracking, breadcrumbs, network capture, and ErrorUtils + Hermes rejection hooks. No browser or Node dependencies. Native Android/iOS crash modules in ./native.
Maintainers
Readme
@allstak/react-native
React Native SDK for AllStak error monitoring.
Agent-Assisted Setup
Run the wizard:
npx @allstak/wizard@latest -i reactNativeThe wizard patches your React Native project automatically. You only need to run it once, then commit the patched project files.
Install
If you prefer manual setup:
npm install @allstak/react-nativePeer requirements:
| Peer | Version |
| --- | --- |
| React | >=16.8.0 |
| React Native | >=0.70 |
Configure
Initialize the SDK as early as possible in your app entry file.
import * as AllStak from "@allstak/react-native";
AllStak.init({
apiKey: "ask_live_...",
sendDefaultPii: true,
});
export default AllStak.wrap(App);Features
Error monitoring is enabled by default after initialization. You can also turn on additional features when your project needs them:
AllStak.init({
apiKey: "ask_live_...",
sendDefaultPii: true,
// Capture 100% of tracing spans. Adjust this value in production.
tracesSampleRate: 1.0,
// Send logs created with AllStak.log(...) or AllStak.logger.*(...).
enableLogs: true,
});Verify
Add an intentional error while testing your setup. You should see it in AllStak within a few minutes.
throw new Error("My first AllStak error!");Next Steps
- Add readable stack traces with source maps.
- Review data collection and privacy settings.
- Capture custom errors and messages where needed.
Links
- Dashboard: https://app.allstak.sa
- Documentation: https://docs.allstak.sa
- Package: https://www.npmjs.com/package/@allstak/react-native
License
MIT (c) AllStak
