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