Skip to content

Commit 3664bbf

Browse files
mdvaccafacebook-github-bot
authored andcommitted
Mark initHybrid as @JvmStatic (#39755)
Summary: 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
1 parent afddbb2 commit 3664bbf

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)