diff --git a/ReactCommon/fabric/uimanager/tests/UITemplateProcessorTest.cpp b/ReactCommon/fabric/uimanager/tests/UITemplateProcessorTest.cpp index 82e3debcb70..9833d2531cb 100644 --- a/ReactCommon/fabric/uimanager/tests/UITemplateProcessorTest.cpp +++ b/ReactCommon/fabric/uimanager/tests/UITemplateProcessorTest.cpp @@ -19,6 +19,7 @@ using namespace facebook::react; #include #include #include +#include #include #include @@ -28,15 +29,15 @@ namespace react { static ComponentRegistryFactory getComponentRegistryFactory() { return [](const EventDispatcher::Weak &eventDispatcher, const ContextContainer::Shared &contextContainer) { - auto registry = std::make_shared(); - registry->registerComponentDescriptor( - std::make_shared(eventDispatcher)); - registry->registerComponentDescriptor( - std::make_shared(eventDispatcher)); - registry->registerComponentDescriptor( - std::make_shared( - eventDispatcher)); - return registry; + ComponentDescriptorProviderRegistry providerRegistry{}; + providerRegistry.add( + concreteComponentDescriptorProvider()); + providerRegistry.add( + concreteComponentDescriptorProvider()); + providerRegistry.add(concreteComponentDescriptorProvider< + ActivityIndicatorViewComponentDescriptor>()); + return providerRegistry.createComponentDescriptorRegistry( + {eventDispatcher, contextContainer}); }; }