mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Adding support for custom C++ TM wrapper to CxxReactPackage (#46822)
Summary: Modifying the CxxReactPackage by changing the annotation from UnstableReactNativeAPI to FrameworkAPI so as to now support custom C++ TM wrapper Changelog: [Android][Changed] - Modify CxxReactPackage to support custom C++ TM wrapper Reviewed By: shwanton, christophpurrer Differential Revision: D63740964 fbshipit-source-id: 175b1104dcd11674413199b30415516d4d324a97
This commit is contained in:
committed by
Facebook GitHub Bot
parent
a669de1dd2
commit
7b877a4bed
@@ -3936,6 +3936,10 @@ public final class com/facebook/react/runtime/ReactSurfaceView : com/facebook/re
|
||||
public fun setIsFabric (Z)V
|
||||
}
|
||||
|
||||
public abstract class com/facebook/react/runtime/cxxreactpackage/CxxReactPackage {
|
||||
protected fun <init> (Lcom/facebook/jni/HybridData;)V
|
||||
}
|
||||
|
||||
public final class com/facebook/react/runtime/hermes/HermesInstance : com/facebook/react/runtime/JSRuntimeFactory {
|
||||
public static final field Companion Lcom/facebook/react/runtime/hermes/HermesInstance$Companion;
|
||||
public fun <init> ()V
|
||||
|
||||
+2
-2
@@ -10,10 +10,10 @@ package com.facebook.react.runtime.cxxreactpackage
|
||||
|
||||
import com.facebook.jni.HybridData
|
||||
import com.facebook.proguard.annotations.DoNotStrip
|
||||
import com.facebook.react.common.annotations.UnstableReactNativeAPI
|
||||
import com.facebook.react.common.annotations.FrameworkAPI
|
||||
|
||||
/** CxxReactPackage is used to register C++ Turbo Modules with React Native. */
|
||||
@UnstableReactNativeAPI
|
||||
@OptIn(FrameworkAPI::class)
|
||||
public abstract class CxxReactPackage protected constructor(hybridData: HybridData?) {
|
||||
|
||||
@DoNotStrip @Suppress("NoHungarianNotation") private var mHybridData: HybridData? = hybridData
|
||||
|
||||
Reference in New Issue
Block a user