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