mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
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:
committed by
Facebook GitHub Bot
parent
c9e448f132
commit
e58add29a0
+2
@@ -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?)
|
||||
}
|
||||
|
||||
+1
@@ -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) {}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user