mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
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
29 lines
643 B
Java
29 lines
643 B
Java
/*
|
|
* 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;
|
|
}
|
|
}
|