diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/runtime/cxxreactpackage/CxxReactPackage.kt b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/runtime/cxxreactpackage/CxxReactPackage.kt index bba110e72361fd..12cfb9ac017292 100644 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/runtime/cxxreactpackage/CxxReactPackage.kt +++ b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/runtime/cxxreactpackage/CxxReactPackage.kt @@ -17,12 +17,10 @@ import com.facebook.soloader.SoLoader @UnstableReactNativeAPI() abstract class CxxReactPackage { - @DoNotStrip @Suppress("NoHungarianNotation") private var mHybridData: HybridData? = initHybrid() + @DoNotStrip @Suppress("NoHungarianNotation") private var mHybridData: HybridData? - protected abstract fun initHybrid(): HybridData - - protected constructor() { - mHybridData = initHybrid() + protected constructor(hybridData: HybridData?) { + mHybridData = hybridData } companion object {