mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
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:
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));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user