#pragma once #include #include #include using namespace facebook; namespace reanimated { struct HostFunctionHandler : jsi::HostObject { std::shared_ptr pureFunction; std::string functionName; jsi::Runtime *hostRuntime; jsi::HostObject a; HostFunctionHandler(std::shared_ptr f, jsi::Runtime &rt) { pureFunction = f; functionName = f->getProperty(rt, "name").asString(rt).utf8(rt); hostRuntime = &rt; } std::shared_ptr getPureFunction() { return pureFunction; } }; } // namespace reanimated