Skip to content

Commit

Permalink
Add logException to Android demo app
Browse files Browse the repository at this point in the history
  • Loading branch information
jhnstn committed Feb 26, 2024
1 parent 1fe5ae2 commit a16c50f
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,12 @@ public void toggleRedoButton(boolean isDisabled) {
public void requestConnectionStatus(ConnectionStatusCallback connectionStatusCallback) {
connectionStatusCallback.onRequestConnectionStatus(true);
}

@Override
public void logException(final ReadableMap exception, LogExceptionCallback logExceptionCallback) {
Log.d("LogException", String.format("Gutenberg requested logging exception: %s", exception));
logExceptionCallback.onLogException();
}
}, isDarkMode());

return new DefaultReactNativeHost(this) {
Expand Down

0 comments on commit a16c50f

Please sign in to comment.