react-native-exception-handler
react-native-exception-handler copied to clipboard
A react native module that lets you to register a global error handler that can capture fatal/non fatal uncaught exceptions.
Hello! Is there any way to know which method/class the error is coming from? Most of the errors captured are useless.
Thanks for making this great library. I just started using the library for our app. We have class based screens as well as Hook screens. I am getting `Check the...
Hi there, this is a neat project! I discovered it from this post: https://elazizi.com/handling-errors-in-react-native-a-complete-guide. I have one question: Is it possible to return a component from the `errorHandler`? Something like...
setNativeExceptionHandler((errorString) => { console.log('setNativeExceptionHandler'); alert("native error"); }, true, true); I used RnTestExceptionHandler to create a native error. but it is not working for me. can anyone help me on that?
In the documentation, it is stated that the JS crush handler, well, let's us do whatever UI react-native allows us to do. But I can only display Alert.alert there. Is...
**Environment**: React-Native 0.63, iOS **Steps to reproduce**: I tried to produce native error within module @react-native-community/clipboard: (injected error throwing ``` NSLog(@"RAISING A TEST EXCEPTION"); [NSException raise:@"TEST EXCEPTION" format:@"THIS IS A...
My code: ```js // App.js import { setJSExceptionHandler, setNativeExceptionHandler } from 'react-native-exception-handler' const errorHandler = (e, isFatal) => { if (isFatal) { Alert.alert( 'Unexpected error occurred', ` Error: ${isFatal ?...
Hello! Been struggling getting the Native Exceptions working. Any assistance would be appreciated!  - node version: v10.13.0 - react version: ~16.9.0 - react-native: 0.61.5 Following the...
It does not seem to catch any errors inside promises for me. I'm navigating to a different view using react-navigation inside a promise, and no errors are caught after this...