From d986e4c8891cf28144acc209c51141ec9e0b1849 Mon Sep 17 00:00:00 2001 From: Samuel Susla Date: Thu, 8 Sep 2022 06:45:05 -0700 Subject: [PATCH] Add iterative props setter mobile config to iOS Summary: changelog: [internal] Setup MC for iterative props setter. Reviewed By: javache Differential Revision: D39305953 fbshipit-source-id: 0087a14ba4f0f252b2e4d01bc2f190acf6384334 --- React/Fabric/RCTSurfacePresenter.mm | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/React/Fabric/RCTSurfacePresenter.mm b/React/Fabric/RCTSurfacePresenter.mm index 6c26e253a03a92..f1ca5d83f53a1e 100644 --- a/React/Fabric/RCTSurfacePresenter.mm +++ b/React/Fabric/RCTSurfacePresenter.mm @@ -27,6 +27,7 @@ #import #import +#import #import #import #import @@ -270,6 +271,12 @@ - (RCTScheduler *)_createScheduler RCTSetDispatchW3CPointerEvents(YES); } + if (reactNativeConfig && reactNativeConfig->getBool("react_fabric:enable_cpp_props_iterator_setter_ios")) { + Props::enablePropIteratorSetter = true; + AccessibilityProps::enablePropIteratorSetter = true; + BaseTextProps::enablePropIteratorSetter = true; + } + auto componentRegistryFactory = [factory = wrapManagedObject(_mountingManager.componentViewRegistry.componentViewFactory)]( EventDispatcher::Weak const &eventDispatcher, ContextContainer::Shared const &contextContainer) {