/
githubmr
/
facebook-react-native
Обзор
Документация
Войти
/
githubmr
/
facebook-react-native
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
main
private/react-native-fantom/tester/src/platform/meta/TesterTurboModuleManagerDelegate.cpp
24 строки
823 B
Andrew Datsenko
Add support for meta only code & oss only code (#52583)
16 июл 2025, 00:16
16 июл 2025, 00:16
46f3e32
Код
Авторство
О чём код?
/* * 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 "../TesterTurboModuleManagerDelegate.h" #include <NativeCxxModuleExample/NativeCxxModuleExample.h> namespace facebook::react { /* static */ TurboModuleManagerDelegate TesterTurboModuleManagerDelegate::getTurboModuleManagerDelegate() { return TurboModuleManagerDelegate{ [](const std::string& name, const std::shared_ptr<CallInvoker>& jsInvoker) -> std::shared_ptr<TurboModule> { if (name == NativeCxxModuleExample::kModuleName) { return std::make_shared<NativeCxxModuleExample>(jsInvoker); } else { return nullptr; } }}; } } // namespace facebook::react