You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
769 B
24 lines
769 B
#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
|
|
|