Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/a7ul/react-native-exception-handler-example
An example repo showing how to integrate react-native-exception-handler
https://github.com/a7ul/react-native-exception-handler-example
example exception-handling react-native
Last synced: 1 day ago
JSON representation
An example repo showing how to integrate react-native-exception-handler
- Host: GitHub
- URL: https://github.com/a7ul/react-native-exception-handler-example
- Owner: a7ul
- Created: 2018-03-13T15:31:29.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-06-18T18:04:16.000Z (over 6 years ago)
- Last Synced: 2024-08-01T16:45:27.092Z (3 months ago)
- Topics: example, exception-handling, react-native
- Language: Objective-C
- Size: 437 KB
- Stars: 34
- Watchers: 2
- Forks: 9
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# React Native Exception handler example
**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](https://github.com/master-atul/react-native-exception-handler)
To run the app:
1. `git clone https://github.com/master-atul/react-native-exception-handler-example`
2. `yarn install`
3. `react-native run-ios --configuration Release` or `react-native run-android --variant=release`JS Exceptions can be caught even when running in development mode, Since I have enabled Catching JS Exceptions during development. So for JS exceptions you can run `react-native run-ios` or `react-native run-android`.
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`
For Android you can run it using:
`react-native run-android --variant=release`
This runs the app on simulator in release configuration.
**Few screenshots**
1. App launch:
1. JS Exception:
1. Native Exception:
Hope this helps people !! ✌🏻🌮