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. The module helps prevent abrupt crashing of RN Apps without a graceful message to the user.
In the current scenario:
In DEV mode , you get a RED Screen error pointing your JS errors.
In Bundled mode , the app just quits without any prompt !
To tackle this we register a global error handler that could be used to for example:
Send bug reports to dev team when the app crashes
Show a creative dialog saying the user should restart the application
Installation:
yarn add react-native-exception-handler?
or
npm i react-native-exception-handler --save
Screens
Without any error handling
In DEV MODE
In BUNDLED MODE