private native void initializeBridge( ReactCallback callback, JavaScriptExecutor jsExecutor, MessageQueueThread jsQueue, MessageQueueThread moduleQueue, Collection<JavaModuleWrapper> javaModules, Collection<ModuleHolder> cxxModules);
/** * Creates a new MessageQueueThread for a background web worker owned by the JS thread with the * given MessageQueueThread. */ @DoNotStrip public static MessageQueueThread createWebWorkerThread(int id, MessageQueueThread ownerThread) { return MessageQueueThreadImpl.startNewBackgroundThread( "web-worker-" + id, new ProxyQueueThreadExceptionHandler(ownerThread)); }
/** * @param jsExecutor the JS executor to use to run JS * @param callback the callback class used to invoke native modules * @param nativeModulesQueueThread the MessageQueueThread the callbacks should be invoked on */ public ReactBridge( JavaScriptExecutor jsExecutor, ReactCallback callback, MessageQueueThread nativeModulesQueueThread) { mJSExecutor = jsExecutor; mCallback = callback; mNativeModulesQueueThread = nativeModulesQueueThread; initialize(jsExecutor, callback, mNativeModulesQueueThread); }
private native void initialize( JavaScriptExecutor jsExecutor, ReactCallback callback, MessageQueueThread nativeModulesQueueThread);
private native void initializeBridge(ReactCallback callback, JavaScriptExecutor jsExecutor, MessageQueueThread jsQueue, MessageQueueThread moduleQueue, ModuleRegistryHolder registryHolder);