react-native-exception-handler icon indicating copy to clipboard operation
react-native-exception-handler copied to clipboard

not working on native errors

Open AmirDoreh opened this issue 4 years ago • 1 comments
trafficstars

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.

AmirDoreh avatar Jul 16 '21 06:07 AmirDoreh

@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.

analyticsdept avatar Oct 20 '21 12:10 analyticsdept