MCPcopy Index your code
hub / github.com/carloscuesta/react-native-error-boundary

github.com/carloscuesta/react-native-error-boundary @v3.1.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v3.1.0 ↗ · + Follow
8 symbols 19 edges 12 files 0 documented · 0% updated 6d agov3.1.0 · 2025-10-31★ 6201 open issues
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

react-native-error-boundary

Build Status Codecov Npm Version Npm Downloads

A simple and reusable React-Native error boundary component 🐛

Install

yarn add react-native-error-boundary

Documentation

API

ErrorBoundary

These are the props that you can pass to the ErrorBoundary component:

Property Type Required Default
Children React.Children true
FallbackComponent React.Component false FallbackComponent
onError Function false

Children

Any children that can throw an error.

FallbackComponent

The fallback component that will be rendered after catching an error. By default the library comes with a built-in component.

onError

A function that receives two arguments:

  • error: The error catched by the component.
  • stackTrace: The stacktrace of the error.
onError(error: Error, stackTrace: string): void

FallbackComponent

These are the props that the FallbackComponent receives:

Property Type Default
error Error
resetError Function

error

The error object.

resetError

A function to reset the error state. You'll want to call this function to recover from the error state.

resetError(): void

Demo

react-native-error-boundary

Core symbols most depended-on inside this repo

getDerivedStateFromError
called by 0
src/ErrorBoundary/index.tsx
componentDidCatch
called by 0
src/ErrorBoundary/index.tsx
render
called by 0
src/ErrorBoundary/index.tsx
FallbackComponent
called by 0
src/ErrorBoundary/FallbackComponent/index.tsx
ExpoSnack
called by 0
docs/src/components/ExpoSnack/index.js

Shape

Function 3
Method 3
Class 2

Languages

TypeScript100%

Modules by API surface

src/ErrorBoundary/index.tsx5 symbols
src/__tests__/errorBoundary.spec.tsx1 symbols
src/ErrorBoundary/FallbackComponent/index.tsx1 symbols
docs/src/components/ExpoSnack/index.js1 symbols

For agents

$ claude mcp add react-native-error-boundary \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact