CxxReactPackage: Use hungarian notation for hybridData (#41675)

Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/41675

FBJni expects the HybridData object to exist on the mHybridData property of the java object. So, we have to call this propery mHybridData.

Otherwise, this fbjni class just won't work.

Changelog: [Internal]

Reviewed By: javache

Differential Revision: D51550621

fbshipit-source-id: d169266474717f0a38799ede7c07af57461012b7
This commit is contained in:
Ramanpreet Nara
2023-11-28 13:17:22 -08:00
committed by Facebook GitHub Bot
parent 528f97152b
commit 00e70354ca
@@ -17,13 +17,13 @@ import com.facebook.soloader.SoLoader
@UnstableReactNativeAPI()
abstract class CxxReactPackage {
@DoNotStrip @SuppressWarnings("unused") private val hybridData: HybridData
@DoNotStrip @Suppress("NoHungarianNotation") private var mHybridData: HybridData? = initHybrid()
protected abstract fun initHybrid(): HybridData
protected constructor() {
maybeLoadOtherSoLibraries()
hybridData = initHybrid()
mHybridData = initHybrid()
}
@Synchronized protected open fun maybeLoadOtherSoLibraries(): Unit {}