Skip to content

Commit e512dce

Browse files
authored
Merge pull request #83 from jenskuhrjorgensen/patch-1
Update README.md
2 parents 51a44bc + c2b2d62 commit e512dce

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,7 @@ setNativeExceptionHandler(exceptionhandler,forceAppQuit,executeDefaultHandler);
178178

179179
```
180180
It is recommended you set both the handlers.
181+
NOTE: `setNativeExceptionHandler` only works in bundled mode - it will show the red screen when applied to dev mode.
181182

182183
**See the examples to know more**
183184

@@ -214,7 +215,7 @@ In Android and iOS you will see something like
214215

215216
(NATIVE CODE HAS TO BE WRITTEN) *recommended that you do this in android studio*
216217

217-
- In the `android/app/src/main/java/[...]/MainActivity.java`
218+
- In the `android/app/src/main/java/[...]/MainApplication.java`
218219

219220
```java
220221
import com.masteratul.exceptionhandler.ReactNativeExceptionHandlerModule;
@@ -235,7 +236,7 @@ public class MainApplication extends Application implements ReactApplication {
235236
public void handleNativeException(Thread thread, Throwable throwable, Thread.UncaughtExceptionHandler originalHandler) {
236237
// Put your error handling code here
237238
}
238-
}//This will override the default behaviour of displaying the recover activity.
239+
});//This will override the default behaviour of displaying the recover activity.
239240
}
240241

241242
```

0 commit comments

Comments
 (0)