#pragma once #include #include #include using namespace facebook; namespace reanimated { class JSScheduler { public: explicit JSScheduler( jsi::Runtime &rnRuntime, const std::shared_ptr &jsCallInvoker) : rnRuntime_(rnRuntime), jsCallInvoker_(jsCallInvoker) {} void scheduleOnJS(std::function job); protected: jsi::Runtime &rnRuntime_; const std::shared_ptr jsCallInvoker_; }; } // namespace reanimated