Mark ReactJsExceptionHandler to require UnstableReactNativeAPI (#38250)

Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/38250

This diff marks ReactJsExceptionHandler to require UnstableReactNativeAPI annotation

changelog: [internal] internal

Reviewed By: christophpurrer

Differential Revision: D47304094

fbshipit-source-id: 93f39422b21925770b99fcf41e004b47d6649c14
This commit is contained in:
David Vacca
2023-07-08 16:10:15 -07:00
committed by Facebook GitHub Bot
parent c9e448f132
commit e58add29a0
2 changed files with 3 additions and 0 deletions
@@ -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?)
}
@@ -192,6 +192,7 @@ public class RNTesterApplication extends Application implements ReactApplication
return mReactHost;
}
@UnstableReactNativeAPI
public static class RNTesterReactJsExceptionHandler implements ReactJsExceptionHandler {
public void reportJsException(ReadableMapBuffer errorMap) {}
}