Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

not working on native errors #152

Open
AmirDoreh opened this issue Jul 16, 2021 · 1 comment
Open

not working on native errors #152

AmirDoreh opened this issue Jul 16, 2021 · 1 comment

Comments

@AmirDoreh
Copy link

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants