Skip to content

Commit e58add2

Browse files
mdvaccafacebook-github-bot
authored andcommitted
Mark ReactJsExceptionHandler to require UnstableReactNativeAPI (#38250)
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
1 parent c9e448f commit e58add2

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

packages/react-native/ReactAndroid/src/main/java/com/facebook/react/interfaces/exceptionmanager/ReactJsExceptionHandler.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,11 @@
88
package com.facebook.react.interfaces.exceptionmanager
99

1010
import com.facebook.proguard.annotations.DoNotStripAny
11+
import com.facebook.react.common.annotations.UnstableReactNativeAPI
1112
import com.facebook.react.common.mapbuffer.ReadableMapBuffer
1213

1314
@DoNotStripAny
15+
@UnstableReactNativeAPI
1416
fun interface ReactJsExceptionHandler {
1517
fun reportJsException(errorMap: ReadableMapBuffer?)
1618
}

packages/rn-tester/android/app/src/main/java/com/facebook/react/uiapp/RNTesterApplication.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,7 @@ public ReactHostInterface getReactHostInterface() {
192192
return mReactHost;
193193
}
194194

195+
@UnstableReactNativeAPI
195196
public static class RNTesterReactJsExceptionHandler implements ReactJsExceptionHandler {
196197
public void reportJsException(ReadableMapBuffer errorMap) {}
197198
}

0 commit comments

Comments
 (0)