A simple and reusable React-Native error boundary component 🐛
yarn add react-native-error-boundary
ErrorBoundaryFallbackComponentErrorBoundaryThese 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 |
ChildrenAny children that can throw an error.
FallbackComponentThe fallback component that will be rendered after catching an error. By default the library comes with a built-in component.
onErrorA function that receives two arguments:
error: The error catched by the component.stackTrace: The stacktrace of the error.onError(error: Error, stackTrace: string): void
FallbackComponentThese are the props that the FallbackComponent receives:
| Property | Type | Default |
|---|---|---|
| error | Error |
|
| resetError | Function |
errorThe error object.
resetErrorA function to reset the error state. You'll want to call this function to recover from the error state.
resetError(): void

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