Skip to content

Commit

Permalink
Remove flag react_native_new_architecture:runtimescheduler_enable_yie…
Browse files Browse the repository at this point in the history
…lding_ios

Summary:
changelog: [internal]

This is shipped on iOS, let's remove gating.

Reviewed By: javache

Differential Revision: D34144360

fbshipit-source-id: 8ca1b3a061470155405bf1b71cdc9ddda6fc2be3
  • Loading branch information
sammy-SC authored and facebook-github-bot committed Feb 11, 2022
1 parent 7374dba commit cefc056
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions React/Fabric/RCTSurfacePresenter.mm
Original file line number Diff line number Diff line change
Expand Up @@ -279,8 +279,7 @@ - (RCTScheduler *)_createScheduler
auto weakRuntimeScheduler = _contextContainer->find<std::weak_ptr<RuntimeScheduler>>("RuntimeScheduler");
auto runtimeScheduler = weakRuntimeScheduler.hasValue() ? weakRuntimeScheduler.value().lock() : nullptr;
if (runtimeScheduler) {
runtimeScheduler->setEnableYielding(
reactNativeConfig->getBool("react_native_new_architecture:runtimescheduler_enable_yielding_ios"));
runtimeScheduler->setEnableYielding(true);
runtimeExecutor = [runtimeScheduler](std::function<void(jsi::Runtime & runtime)> &&callback) {
runtimeScheduler->scheduleWork(std::move(callback));
};
Expand Down

0 comments on commit cefc056

Please sign in to comment.