mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-05-09 13:37:58 +08:00
Invert native dependency of new bridge -> old bridge
Reviewed By: mhorowitz Differential Revision: D3374937 fbshipit-source-id: 58b082bba727e33a3b08361be3630d669fc8dc5b
This commit is contained in:
committed by
Facebook Github Bot 2
parent
26a92220c2
commit
bf010a4c17
@@ -24,16 +24,22 @@ import com.facebook.soloader.SoLoader;
|
||||
@DoNotStrip
|
||||
public class ReactBridge extends Countable {
|
||||
|
||||
/* package */ static final String REACT_NATIVE_LIB = "reactnativejni";
|
||||
private static final String REACT_NATIVE_LIB = "reactnativejni";
|
||||
private static final String XREACT_NATIVE_LIB = "reactnativejnifb";
|
||||
|
||||
static {
|
||||
SoLoader.loadLibrary(REACT_NATIVE_LIB);
|
||||
SoLoader.loadLibrary(XREACT_NATIVE_LIB);
|
||||
}
|
||||
|
||||
private final ReactCallback mCallback;
|
||||
private final JavaScriptExecutor mJSExecutor;
|
||||
private final MessageQueueThread mNativeModulesQueueThread;
|
||||
|
||||
public static void staticInit() {
|
||||
// This is just called to ensure that ReactBridge's static initialization has taken place.
|
||||
}
|
||||
|
||||
/**
|
||||
* @param jsExecutor the JS executor to use to run JS
|
||||
* @param callback the callback class used to invoke native modules
|
||||
|
||||
Reference in New Issue
Block a user