Skip to content

Commit 731429e

Browse files
sammy-SCfacebook-github-bot
authored andcommitted
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
1 parent d79f658 commit 731429e

File tree

1 file changed

+3
-0
lines changed
  • ReactAndroid/src/main/java/com/facebook/react/fabric/jni

1 file changed

+3
-0
lines changed

ReactAndroid/src/main/java/com/facebook/react/fabric/jni/Binding.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -396,6 +396,9 @@ void Binding::installFabricUIManager(
396396
std::function<void(jsi::Runtime & runtime)> &&callback) {
397397
runtimeScheduler->scheduleWork(std::move(callback));
398398
};
399+
contextContainer->insert(
400+
"RuntimeScheduler",
401+
std::weak_ptr<RuntimeScheduler>(runtimeScheduler));
399402
}
400403
}
401404

0 commit comments

Comments
 (0)