{"id":13412549,"url":"https://github.com/carloscuesta/react-native-error-boundary","last_synced_at":"2025-05-14T10:07:10.652Z","repository":{"id":37663952,"uuid":"169785902","full_name":"carloscuesta/react-native-error-boundary","owner":"carloscuesta","description":"A simple React-Native error boundary component 🐛","archived":false,"fork":false,"pushed_at":"2025-04-02T22:04:22.000Z","size":6058,"stargazers_count":555,"open_issues_count":1,"forks_count":33,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-03T23:49:36.893Z","etag":null,"topics":["error-boundary","react-native"],"latest_commit_sha":null,"homepage":"https://react-native-error-boundary.js.org","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/carloscuesta.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":["carloscuesta"],"custom":["https://paypal.me/carloscuesta"]}},"created_at":"2019-02-08T19:13:18.000Z","updated_at":"2025-04-03T00:21:19.000Z","dependencies_parsed_at":"2023-02-19T12:31:38.864Z","dependency_job_id":"455b22ed-f125-496f-b8d4-89359007479e","html_url":"https://github.com/carloscuesta/react-native-error-boundary","commit_stats":{"total_commits":856,"total_committers":9,"mean_commits":95.11111111111111,"dds":"0.14018691588785048","last_synced_commit":"dd86e8120bd6922280647a1857a550250cc85640"},"previous_names":[],"tags_count":33,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/carloscuesta%2Freact-native-error-boundary","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/carloscuesta%2Freact-native-error-boundary/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/carloscuesta%2Freact-native-error-boundary/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/carloscuesta%2Freact-native-error-boundary/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/carloscuesta","download_url":"https://codeload.github.com/carloscuesta/react-native-error-boundary/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248336853,"owners_count":21086892,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["error-boundary","react-native"],"created_at":"2024-07-30T20:01:25.979Z","updated_at":"2025-04-11T03:34:29.259Z","avatar_url":"https://github.com/carloscuesta.png","language":"TypeScript","funding_links":["https://github.com/sponsors/carloscuesta","https://paypal.me/carloscuesta"],"categories":["TypeScript","Mobile"],"sub_categories":["React Native \u0026 Expo"],"readme":"# react-native-error-boundary\n\n[![Build Status](https://img.shields.io/github/actions/workflow/status/carloscuesta/react-native-error-boundary/ci.yml?branch=master\u0026style=flat-square)](https://github.com/carloscuesta/react-native-error-boundary/actions?query=workflow%3ACI+branch%3Amaster)\n[![Codecov](https://img.shields.io/codecov/c/github/carloscuesta/react-native-error-boundary.svg?style=flat-square)](https://codecov.io/gh/carloscuesta/react-native-error-boundary)\n[![Npm Version](https://img.shields.io/npm/v/react-native-error-boundary.svg?style=flat-square)](https://www.npmjs.com/package/react-native-error-boundary)\n[![Npm Downloads](https://img.shields.io/npm/dt/react-native-error-boundary.svg?style=flat-square)](https://www.npmjs.com/package/react-native-error-boundary)\n\n\u003e A simple and reusable React-Native [error boundary](https://react.dev/reference/react/Component#catching-rendering-errors-with-an-error-boundary) component 🐛\n\n## Install\n\n```bash\nyarn add react-native-error-boundary\n```\n\n## Documentation\n\n- [Installation](https://react-native-error-boundary.js.org/install)\n- [Usage](https://react-native-error-boundary.js.org/usage/recovering-errors)\n  - [Recovering Errors](https://react-native-error-boundary.js.org/usage/recovering-errors)\n  - [Logging Errors](https://react-native-error-boundary.js.org/usage/logging-errors)\n  - [Rendering a Fallback Component](https://react-native-error-boundary.js.org/usage/rendering-a-custom-fallback-ui)\n- [API](https://react-native-error-boundary.js.org/api/errorboundary)\n  - [`ErrorBoundary`](https://react-native-error-boundary.js.org/api/errorboundary)\n  - [`FallbackComponent`](https://react-native-error-boundary.js.org/api/fallbackcomponent)\n- [FAQ](https://react-native-error-boundary.js.org/faq)\n\n## API\n\n### [`ErrorBoundary`](https://react-native-error-boundary.js.org/api/errorboundary)\n\nThese are the props that you can pass to the `ErrorBoundary` component:\n\n| Property            | Type              | Required | Default             |\n|---------------------|-------------------|----------|---------------------|\n| `Children`          | `React.Children`  | `true`   |                     |\n| `FallbackComponent` | `React.Component` | `false`  | `FallbackComponent` |\n| `onError`           | `Function`        | `false`  |                     |\n\n#### `Children`\n\nAny children that can throw an error. \n\n#### [`FallbackComponent`](https://react-native-error-boundary.js.org/api/fallbackcomponent)\n\nThe fallback component that will be rendered after catching an error.\nBy default the library comes with a built-in component.\n\n#### `onError`\n\nA function that receives two arguments:\n\n- `error`: The error catched by the component.\n- `stackTrace`: The stacktrace of the error.\n\n```js\nonError(error: Error, stackTrace: string): void\n```\n\n### [`FallbackComponent`](https://react-native-error-boundary.js.org/api/fallbackcomponent)\n\nThese are the props that the `FallbackComponent` receives:\n\n| Property   | Type       | Default |\n|------------|------------|---------|\n| error      | `Error`    |         |\n| resetError | `Function` |         |\n\n#### `error`\n\nThe error object.\n\n#### `resetError`\n\nA function to reset the error state. You'll want to call this function to recover from the error state.\n\n```js\nresetError(): void\n```\n\n## Demo\n\n\u003cimg\n  src='https://user-images.githubusercontent.com/7629661/111866027-bc158e00-896a-11eb-8140-cfdc5d19527c.gif'\n  alt='react-native-error-boundary'\n  width='354px'\n/\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcarloscuesta%2Freact-native-error-boundary","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcarloscuesta%2Freact-native-error-boundary","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcarloscuesta%2Freact-native-error-boundary/lists"}