{"repo":"carloscuesta/react-native-error-boundary","free":true,"listed":false,"github":"https://github.com/carloscuesta/react-native-error-boundary","clone":"git clone https://github.com/carloscuesta/react-native-error-boundary.git","description":"A simple React-Native error boundary component 🐛","language":"TypeScript","stars":623,"topics":["react-native","error-boundary"],"license":"MIT","category":"mobile-apps","readme_excerpt":"react-native-error-boundary A simple and reusable React-Native error boundary component 🐛 Install Documentation - Installation - Usage - Recovering Errors - Logging Errors - Rendering a Fallback Component - API - ErrorBoundary - FallbackComponent - FAQ 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. 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. Demo","default_branch":null,"files":null,"tree":[],"storefront":"/r/carloscuesta","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/carloscuesta/react-native-error-boundary/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}