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:
David Vacca
2023-10-02 13:10:32 -07:00
committed by Facebook GitHub Bot
parent b27fab70c5
commit 0371014a33
@@ -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?
}
}