Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
// (c) Meta Platforms, Inc. and affiliates. Confidential and proprietary.

#pragma once

#include <folly/dynamic.h>
#include <functional>
#include <string>

namespace facebook::react {

using JavaScriptModuleCallback = std::function<void(
const std::string& moduleName,
const std::string& methodName,
folly::dynamic&& args)>;

} // namespace facebook::react
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
// (c) Meta Platforms, Inc. and affiliates. Confidential and proprietary.

#pragma once

#include "JavaScriptModule.h"

#include <ReactCommon/CallInvoker.h>
#include <ReactCommon/TurboModule.h>
#include <functional>
#include <string>

namespace facebook::react {

class RuntimeScheduler;

using TurboModuleManagerDelegate = std::function<std::shared_ptr<TurboModule>(
const std::string& name,
const std::shared_ptr<CallInvoker>& jsInvoker)>;

using LegacyModuleProviderDelegate =
std::function<TurboModuleProviderFunctionType(
const std::shared_ptr<CallInvoker>& jsInvoker,
const std::shared_ptr<RuntimeScheduler>& runtimeScheduler,
const JavaScriptModuleCallback& javaScriptModuleCallback)>;

} // namespace facebook::react