Skip to content

Commit 0371014

Browse files
mdvaccafacebook-github-bot
authored andcommitted
Mark initHybrid as @JvmStatic (#39755)
Summary: Pull Request resolved: #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
1 parent b27fab7 commit 0371014

File tree

1 file changed

+1
-1
lines changed
  • packages/react-native/ReactAndroid/src/main/java/com/facebook/react/jscexecutor

1 file changed

+1
-1
lines changed

packages/react-native/ReactAndroid/src/main/java/com/facebook/react/jscexecutor/JSCExecutor.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,6 @@ class JSCExecutor internal constructor(jscConfig: ReadableNativeMap) :
3131
SoLoader.loadLibrary("jscexecutor")
3232
}
3333

34-
private external fun initHybrid(jscConfig: ReadableNativeMap): HybridData?
34+
@JvmStatic private external fun initHybrid(jscConfig: ReadableNativeMap): HybridData?
3535
}
3636
}

0 commit comments

Comments
 (0)