File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
packages/host/android/src/main/cpp Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 3
3
#include < ReactCommon/CxxTurboModuleUtils.h>
4
4
5
5
#include < CxxNodeApiHostModule.hpp>
6
+ #include < RuntimeNodeApiAsync.hpp>
6
7
#include < WeakNodeApiInjector.hpp>
7
8
8
9
// Called when the library is loaded
9
- jint JNI_OnLoad (JavaVM * vm, void * reserved) {
10
+ jint JNI_OnLoad (JavaVM* vm, void * reserved) {
10
11
callstack::nodeapihost::injectIntoWeakNodeApi ();
11
12
// Register the C++ TurboModule
12
13
facebook::react::registerCxxModuleToGlobalModuleMap (
13
14
callstack::nodeapihost::CxxNodeApiHostModule::kModuleName ,
14
15
[](std::shared_ptr<facebook::react::CallInvoker> jsInvoker) {
16
+ callstack::nodeapihost::setCallInvoker (jsInvoker);
15
17
return std::make_shared<callstack::nodeapihost::CxxNodeApiHostModule>(
16
18
jsInvoker);
17
19
});
You can’t perform that action at this time.
0 commit comments