Skip to content

Commit

Permalink
Wire up enableDefaultAsyncBatchedPriority feature flag on iOS and And…
Browse files Browse the repository at this point in the history
…roid

Summary:
changelog: [internal]

bypass-githubexport-checks

Reviewed By: NickGerleman

Differential Revision: D48522515

fbshipit-source-id: aaa184982094e006f4273468584d52b9b2cb5493
  • Loading branch information
sammy-SC authored and facebook-github-bot committed Aug 22, 2023
1 parent 565e06f commit 1708863
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/react-native/React/Fabric/RCTSurfacePresenter.mm
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,10 @@ - (RCTScheduler *)_createScheduler
CoreFeatures::disableScrollEventThrottleRequirement = true;
}

if (reactNativeConfig && reactNativeConfig->getBool("react_fabric:enable_default_async_batched_priority")) {
CoreFeatures::enableDefaultAsyncBatchedPriority = true;
}

auto componentRegistryFactory =
[factory = wrapManagedObject(_mountingManager.componentViewRegistry.componentViewFactory)](
EventDispatcher::Weak const &eventDispatcher, ContextContainer::Shared const &contextContainer) {
Expand Down

0 comments on commit 1708863

Please sign in to comment.