react-native-get-pixel_edit/node_modules/react-native/ReactCommon/react/runtime/BridgelessNativeMethodCallInvoker.h
2025-07-09 11:41:52 +09:00

29 lines
828 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.
*/
#include <ReactCommon/CallInvoker.h>
#include <cxxreact/MessageQueueThread.h>
#include <functional>
#include <memory>
namespace facebook::react {
class BridgelessNativeMethodCallInvoker : public NativeMethodCallInvoker {
public:
explicit BridgelessNativeMethodCallInvoker(
std::shared_ptr<MessageQueueThread> messageQueueThread);
void invokeAsync(const std::string& methodName, std::function<void()>&& func)
override;
void invokeSync(const std::string& methodName, std::function<void()>&& func)
override;
private:
std::shared_ptr<MessageQueueThread> messageQueueThread_;
};
} // namespace facebook::react