React Native error tracking SDK for Bloop — self-hosted error tracking.
npm install @bloop/react-nativeimport { useBloop, BloopErrorBoundary } from "@bloop/react-native";
function App() {
const bloop = useBloop({
endpoint: "https://errors.myapp.com",
projectKey: "bloop_abc123...",
environment: "production",
release: "1.0.0",
appVersion: "1.0.0",
buildNumber: "42",
});
return (
<BloopErrorBoundary client={bloop} fallback={<ErrorScreen />}>
<Navigation />
</BloopErrorBoundary>
);
}- useBloop hook — Creates and manages the client lifecycle with global error handler
- BloopErrorBoundary — React error boundary that auto-captures render errors
- Platform detection — Automatically sets source to "ios" or "android"
- Manual capture —
bloop.captureError(error)for caught exceptions
MIT