Skip to content

jaikoo/bloop-react-native

Repository files navigation

@bloop/react-native

React Native error tracking SDK for Bloop — self-hosted error tracking.

Install

npm install @bloop/react-native

Usage

import { 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>
  );
}

Features

  • 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 capturebloop.captureError(error) for caught exceptions

License

MIT

About

Bloop error tracking SDK for React Native

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors