diff --git a/ReactCommon/cxxreact/CxxNativeModule.cpp b/ReactCommon/cxxreact/CxxNativeModule.cpp index 314d3837a..664c9ab84 100644 --- a/ReactCommon/cxxreact/CxxNativeModule.cpp +++ b/ReactCommon/cxxreact/CxxNativeModule.cpp @@ -57,7 +57,8 @@ std::vector CxxNativeModule::getMethods() { std::vector descs; for (auto& method : methods_) { assert(method.func || method.syncFunc); - descs.emplace_back(method.name, method.func ? "async" : "sync"); + auto methodType = method.func ? (method.callbacks == 2 ? "promise" : "async") : "sync"; + descs.emplace_back(method.name, methodType); } return descs; }