a7ul / react-native-exception-handler

A react native module that lets you to register a global error handler that can capture fatal/non fatal uncaught exceptions.
MIT License
1.58k stars 133 forks source link

not working on native errors #152

Open AmirDoreh opened 3 years ago

AmirDoreh commented 3 years ago

photo_2021-07-15_19-21-26

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 in my index.js , but still i am not able to ignore the error for not crashing the app.

analyticsdept commented 2 years ago

@AmirDoreh I know this is an old thread but did you try changing the last parameter (defaultHandler) to false?

I'm not sure how it behaves when there is no previous handler, or if other crash tools may interfere with your handling by causing it to be dropped.