react-native-exception-handler
react-native-exception-handler copied to clipboard
Interface stuck after crash on Android
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?
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.
@master-atul I need the setNativeException handler since I need to log all the crashes my app has
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.