Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@ setNativeExceptionHandler(exceptionhandler,forceAppQuit,executeDefaultHandler);

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

**See the examples to know more**

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

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

- In the `android/app/src/main/java/[...]/MainActivity.java`
- In the `android/app/src/main/java/[...]/MainApplication.java`

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

```
Expand Down