Introducing Registry for C++ Components in React Native renderer

Summary:
This diff introduces the APIs that will be used to register C++ components in React Native Renderer for Android

changelog: [internal] internal

Reviewed By: sammy-SC

Differential Revision: D38725768

fbshipit-source-id: a7116b787f83544282230666d9d5acbfb1df4047
This commit is contained in:
David Vacca
2022-09-15 09:48:25 -07:00
committed by Facebook GitHub Bot
parent c74f91957e
commit 53d2f1891e
5 changed files with 263 additions and 0 deletions
@@ -0,0 +1,28 @@
/*
* 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.fabric;
import androidx.annotation.NonNull;
import com.facebook.jni.HybridData;
import com.facebook.proguard.annotations.DoNotStrip;
@DoNotStrip
public class CppComponentRegistry {
static {
FabricSoLoader.staticInit();
}
@NonNull private final HybridData mHybridData;
private static native HybridData initHybrid();
private CppComponentRegistry(HybridData hybridData) {
mHybridData = hybridData;
}
}