Migrate ReactJsExceptionHandler to Kotlin (#38249)

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

Quick migration of ReactJsExceptionHandler to Kotlin.

It will documented in the next diffs of the stack (might rename it as well)

changelog: [internal] internal

Reviewed By: arushikesarwani94

Differential Revision: D47300786

fbshipit-source-id: ea15b4180c22f5759d327e43af1b7a5c077ea9f8
This commit is contained in:
David Vacca
2023-07-08 16:10:15 -07:00
committed by Facebook GitHub Bot
parent 683e279dfe
commit c9e448f132
2 changed files with 16 additions and 17 deletions
@@ -1,17 +0,0 @@
/*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
package com.facebook.react.interfaces.exceptionmanager;
import com.facebook.proguard.annotations.DoNotStripAny;
import com.facebook.react.common.mapbuffer.ReadableMapBuffer;
@DoNotStripAny
public interface ReactJsExceptionHandler {
void reportJsException(ReadableMapBuffer errorMap);
}
@@ -0,0 +1,16 @@
/*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
package com.facebook.react.interfaces.exceptionmanager
import com.facebook.proguard.annotations.DoNotStripAny
import com.facebook.react.common.mapbuffer.ReadableMapBuffer
@DoNotStripAny
fun interface ReactJsExceptionHandler {
fun reportJsException(errorMap: ReadableMapBuffer?)
}