mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Mark initHybrid as @JvmStatic (#39755)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/39755 The goal of this diff is to fix: ``` JNI DETECTED ERROR IN APPLICATION: JNI NewGlobalRef called with pending exception java.lang.NoSuchMethodError: no static or non-static method "Lcom/facebook/react/jscexecutor/JSCExecutor;.initHybrid(Lcom/facebook/react/bridge/ReadableNativeMap;)Lcom/facebook/jni/HybridData;" ``` changelog: [internal] internal Reviewed By: luluwu2032 Differential Revision: D49831595 fbshipit-source-id: 9ce22cdccdd02af74edb27be2df72a469d3166c9
This commit is contained in:
committed by
Facebook GitHub Bot
parent
b27fab70c5
commit
0371014a33
+1
-1
@@ -31,6 +31,6 @@ class JSCExecutor internal constructor(jscConfig: ReadableNativeMap) :
|
||||
SoLoader.loadLibrary("jscexecutor")
|
||||
}
|
||||
|
||||
private external fun initHybrid(jscConfig: ReadableNativeMap): HybridData?
|
||||
@JvmStatic private external fun initHybrid(jscConfig: ReadableNativeMap): HybridData?
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user