michangarrito/apps/backend/node_modules/react-native/ReactCommon/react/runtime/BridgelessNativeMethodCallInvoker.h
rckrdmrd 97f407c661 [MIGRATION-V2] feat: Migrar michangarrito a estructura v2
- Prefijo v2: MCH
- TRACEABILITY-MASTER.yml creado
- Listo para integracion como submodulo

Workspace: v2.0.0 | SIMCO: v4.0.0
2026-01-10 11:28:54 -06:00

27 lines
808 B
C++

/*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#pragma once
#include <ReactCommon/CallInvoker.h>
#include <cxxreact/MessageQueueThread.h>
#include <memory>
namespace facebook::react {
class BridgelessNativeMethodCallInvoker : public NativeMethodCallInvoker {
public:
explicit BridgelessNativeMethodCallInvoker(std::shared_ptr<MessageQueueThread> messageQueueThread);
void invokeAsync(const std::string &methodName, NativeMethodCallFunc &&func) noexcept override;
void invokeSync(const std::string &methodName, NativeMethodCallFunc &&func) override;
private:
std::shared_ptr<MessageQueueThread> messageQueueThread_;
};
} // namespace facebook::react