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) {