mirror of
https://github.com/RoboSats/robosats.git
synced 2025-01-22 14:11:35 +00:00
25 lines
769 B
C++
25 lines
769 B
C++
|
#include "MainApplicationModuleProvider.h"
|
||
|
|
||
|
#include <rncore.h>
|
||
|
|
||
|
namespace facebook {
|
||
|
namespace react {
|
||
|
|
||
|
std::shared_ptr<TurboModule> MainApplicationModuleProvider(
|
||
|
const std::string moduleName,
|
||
|
const JavaTurboModule::InitParams ¶ms) {
|
||
|
// Here you can provide your own module provider for TurboModules coming from
|
||
|
// either your application or from external libraries. The approach to follow
|
||
|
// is similar to the following (for a library called `samplelibrary`:
|
||
|
//
|
||
|
// auto module = samplelibrary_ModuleProvider(moduleName, params);
|
||
|
// if (module != nullptr) {
|
||
|
// return module;
|
||
|
// }
|
||
|
// return rncore_ModuleProvider(moduleName, params);
|
||
|
return rncore_ModuleProvider(moduleName, params);
|
||
|
}
|
||
|
|
||
|
} // namespace react
|
||
|
} // namespace facebook
|