From a47746b851f38cf01bb8b6effe960a461f977376 Mon Sep 17 00:00:00 2001 From: Kevin Gozali Date: Fri, 29 Mar 2019 12:29:00 -0700 Subject: [PATCH] TM Android: temporarily disable callback support to unbreak build Summary: With the recent change, JSCallInvoker now expects `Instance` to be passed in, not just the `MessageQueueThread`. There needs to be more plumbing to get the instance of `Instance` from the Java side, but this commit is just to unbreak the build temporarily. Reviewed By: JoshuaGross Differential Revision: D14687622 fbshipit-source-id: 42e0173ee8336fc5660fe8188a1e1f8517611521 --- .../facebook/react/turbomodule/core/jni/TurboModuleManager.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ReactAndroid/src/main/java/com/facebook/react/turbomodule/core/jni/TurboModuleManager.cpp b/ReactAndroid/src/main/java/com/facebook/react/turbomodule/core/jni/TurboModuleManager.cpp index d5cd4feae69..4cfc65712c2 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/turbomodule/core/jni/TurboModuleManager.cpp +++ b/ReactAndroid/src/main/java/com/facebook/react/turbomodule/core/jni/TurboModuleManager.cpp @@ -55,7 +55,8 @@ void TurboModuleManager::installJSIBindings() { TurboModuleBinding::install(*runtime_, std::make_shared( [this](const std::string &name) { const auto moduleInstance = getJavaModule(name); - const auto jsInvoker = std::make_shared(jsMessageQueueThread_); + // TODO: Pass in react Instance to JSCallInvoker instead. + const auto jsInvoker = std::make_shared(nullptr); return moduleProvider_(name, moduleInstance, jsInvoker); }) );