This is an example repo This repo contains a basic react native app boilerplate code.
I have integrated both JS Exception handler and Native exception handler here to showcase how to integrate the library.
The details of how the libarary works and integration can be found here:
https://github.com/master-atul/react-native-exception-handler
To run the app:
git clone https://github.com/master-atul/react-native-exception-handler-exampleyarn installreact-native run-iosorreact-native run-android
I have enabled Catching JS Exceptions during development. Hence if you click on Cause JS Exception Button, you should see the error been caught straight away.
In case of native exceptions . You would need to run the app in the bundled mode using:
react-native run-ios --configuration Release
This runs the app on simulator in release configuration.
Few screenshots
- App launch:
- JS Exception:
- Native Exception:
Hope this helps people !! ✌🏻🌮


