Skip to content

Commit

Permalink
Mark initHybrid as @JvmStatic (#39755)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
mdvacca authored and facebook-github-bot committed Oct 2, 2023
1 parent b27fab7 commit 0371014
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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?
}
}

0 comments on commit 0371014

Please sign in to comment.