Create JRuntimeExecutor (#28779)

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

Creating a JNI wrapper class for RuntimeExecutor so we can pass it to Fabric and TurboModules in Java.

Changelog: [Internal]

Reviewed By: RSNara

Differential Revision: D21049385

fbshipit-source-id: f833004225d9837acf6ffafd3988f89748cf12aa
This commit is contained in:
Emily Janzer
2020-04-28 17:56:44 -07:00
committed by Facebook GitHub Bot
parent e171c2b92a
commit 23d6b8d4c0
6 changed files with 95 additions and 1 deletions
@@ -0,0 +1,21 @@
/*
* Copyright (c) Facebook, Inc. and its 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.bridge;
import com.facebook.jni.HybridData;
import com.facebook.proguard.annotations.DoNotStrip;
/** A Java holder for a C++ RuntimeExecutor. */
public class RuntimeExecutor {
@DoNotStrip private HybridData mHybridData;
public RuntimeExecutor(HybridData hybridData) {
mHybridData = hybridData;
}
}