Enable RuntimeScheduler::callExpiredTasks on Android

Summary:
changelog: [internal]

In order to call `RuntimeScheduler::callExpiredTasks`, we need to pass it to `Scheduler` through context container.

Reviewed By: javache

Differential Revision: D34042293

fbshipit-source-id: 62d18507fb107c5be2ac9d003f63735aab6a09ac
This commit is contained in:
Samuel Susla
2022-02-07 09:56:15 -08:00
committed by Facebook GitHub Bot
parent d79f658016
commit 731429ebcf
@@ -396,6 +396,9 @@ void Binding::installFabricUIManager(
std::function<void(jsi::Runtime & runtime)> &&callback) {
runtimeScheduler->scheduleWork(std::move(callback));
};
contextContainer->insert(
"RuntimeScheduler",
std::weak_ptr<RuntimeScheduler>(runtimeScheduler));
}
}