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.
This library has not been maintained for years. I can open PR for this
@a7ul I am using this code in my App.js but the alert is not showing instead it shows unhandled promise rejection in Yellowbox ``` const errorHandler = (e, isFatal) =>...
My app just crashes, with no exception UI being shown. I'm setting the native exception handling as follows in my code: ``` setNativeExceptionHandler((exceptionString) => { }); ``` I am using...
Hello, is it possible to open alert box and onPress navigate, for example, to a Contact Us screen? Thank you!
I wonder whats the technical reason, native exceptions can't be passed as event to the JS side @a7ul? An explanation in the readme would be interesting.
The library is catching the JS errors, but particularly "ReferenceError: variable is not defined" doesn't seem to capture it. I forced this error by misspelling a variable name and I...
HI, How can we get the screen name on which the error occurs? It is only returning the error message.
Im using this code in my app. ``` const errorHandler = async (error, isFatal) => { console.log(error, isFatal) sendCrashToLogger() if (isFatal) { RNRestart.Restart() } } ``` ``` setNativeExceptionHandler(errorHandler); setJSExceptionHandler(errorHandler, true);...
const nativeExceptionhandler = exceptionString => { fetch('URL', { method: 'post', headers: { accept: 'application/json', 'content-type': 'application/json', "Authorization": "Basic " + btoa(" + ":x") }, body: JSON.stringify({ email: "MailID", // UserName...
 ``` import { setNativeExceptionHandler } from "react-native-exception-handler"; const exceptionhandler = (exceptionString) => { Alert.alert("Congrats","you are in the call") }; setNativeExceptionHandler( exceptionhandler, false, true ); ``` i implemented the code...