Skip to content

Commit 4fc735d

Browse files
committed
Readme done
1 parent 807c9e8 commit 4fc735d

File tree

6 files changed

+39
-1371
lines changed

6 files changed

+39
-1371
lines changed

README.md

Lines changed: 38 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ To tackle this we register a global error handler that could be used to for exam
1414
### Installation:
1515

1616
```sh
17-
yarn add react-native-exception-handler
17+
yarn add react-native-exception-handler¸
1818
```
1919

2020
or
@@ -43,8 +43,44 @@ const errorHandler = (error, isFatal) => {
4343

4444
setJSExceptionHandler(errorHandler); // registering the error handler (maybe u can do this in the index.android.js or index.ios.js)
4545

46-
```
46+
or
47+
48+
setJSExceptionHandler(errorHandler, true); //Second argument true is basically
49+
//if u need the handler to be called in place of RED
50+
//screen in development mode also
51+
```
52+
53+
54+
### Screens
55+
56+
##### Without any error handling
57+
58+
**In DEV MODE**
59+
60+
<br>
61+
62+
<div style="text-align:center">
63+
<img src="/screens/WITHOUT_DEV.gif" style="width: 50%;display: inline;">
64+
</div>
65+
<br>
66+
67+
**In BUNDLED MODE**
68+
69+
<br>
70+
71+
<div style="text-align:center">
72+
<img src="/screens/WITHOUT_PROD.gif" style="width: 50%;display: inline;">
73+
</div>
74+
<br>
75+
76+
**With Error handling in BUNDLED MODE**
77+
78+
<br>
4779

80+
<div style="text-align:center">
81+
<img src="/screens/WITH_EH.gif" style="width: 50%;display: inline;">
82+
</div>
83+
<br>
4884

4985
### Examples
5086

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
{
22
"name": "react-native-exception-handler",
33
"version": "1.0.0",
4-
"description": "A react native module that lets you to register a global error handler that can capture fatal/non fatal uncaught exceptions.
5-
",
4+
"description": "A react native module that lets you to register a global error handler that can capture fatal/non fatal uncaught exceptions.",
65
"main": "index.js",
76
"scripts": {
87
"test": "echo no tests && exit 1",

screens/WITHOUT_DEV.gif

247 KB
Loading

screens/WITHOUT_PROD.gif

108 KB
Loading

screens/WITH_EH.gif

210 KB
Loading

0 commit comments

Comments
 (0)