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

Interface stuck after crash on Android

Open raynor85 opened this issue 7 years ago • 3 comments
trafficstars

According to the documentation, I should see an alert box on Android. Instead I get a black screen. It is worth noting that I'm using react-native-navigator from wix, so it might be related. Is there an option to disable the alert screen and just let the app crashes, as it normally would?

raynor85 avatar Mar 27 '18 17:03 raynor85

Yes @raynor85 You can disable the alert screen by not setting the setNativeException handler for android.

Also, there were few issues related to react-native-navigator from wix as mentioned in the README.

a7ul avatar Mar 27 '18 17:03 a7ul

@master-atul I need the setNativeException handler since I need to log all the crashes my app has

raynor85 avatar Mar 27 '18 17:03 raynor85

Okay . I am getting a hacky solution in my mind at the moment. So You can basically create a custom native exception handler class in android and call activity.finish() when it loads. In essence you replace the default error activity screen with a custom one that closes itself as soon as it launches.

I know its not a pretty solution, but I am just trying to find a workaround.

a7ul avatar Mar 27 '18 20:03 a7ul