Skip to content

Commit

Permalink
fix returned value from notification handler
Browse files Browse the repository at this point in the history
  • Loading branch information
mattiaferrari02 committed Feb 15, 2024
1 parent a9b03e1 commit 889a9d5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cpp/utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,8 @@ namespace utils {
// to access safely the js runtime from another thread we need to call the runtime within the call invoker invoke async
std::shared_ptr<react::CallInvoker> i = instance->invoker.lock();
i->invokeAsync([=] {
handle->call(instance->rt, nativeString);
jsi::Value parsed = utils::parse(instance->rt, nativeString);
handle->call(instance->rt, parsed);
});
}
}
Expand Down

0 comments on commit 889a9d5

Please sign in to comment.