Skip to content

Commit

Permalink
Mark ReactJsExceptionHandler to require UnstableReactNativeAPI (#38250)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: #38250

This diff marks ReactJsExceptionHandler to require UnstableReactNativeAPI annotation

changelog: [internal] internal

Reviewed By: christophpurrer

Differential Revision: D47304094

fbshipit-source-id: 93f39422b21925770b99fcf41e004b47d6649c14
  • Loading branch information
mdvacca authored and facebook-github-bot committed Jul 8, 2023
1 parent c9e448f commit e58add2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,11 @@
package com.facebook.react.interfaces.exceptionmanager

import com.facebook.proguard.annotations.DoNotStripAny
import com.facebook.react.common.annotations.UnstableReactNativeAPI
import com.facebook.react.common.mapbuffer.ReadableMapBuffer

@DoNotStripAny
@UnstableReactNativeAPI
fun interface ReactJsExceptionHandler {
fun reportJsException(errorMap: ReadableMapBuffer?)
}
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@ public ReactHostInterface getReactHostInterface() {
return mReactHost;
}

@UnstableReactNativeAPI
public static class RNTesterReactJsExceptionHandler implements ReactJsExceptionHandler {
public void reportJsException(ReadableMapBuffer errorMap) {}
}
Expand Down

0 comments on commit e58add2

Please sign in to comment.