|
10 | 10 | #include "componentNameByReactViewName.h" |
11 | 11 |
|
12 | 12 | #include <react/debug/react_native_assert.h> |
13 | | -#include <react/featureflags/ReactNativeFeatureFlags.h> |
14 | 13 | #include <react/renderer/componentregistry/ComponentDescriptorProviderRegistry.h> |
15 | 14 | #include <react/renderer/components/legacyviewmanagerinterop/UnstableLegacyViewManagerAutomaticComponentDescriptor.h> |
16 | 15 | #include <react/renderer/components/legacyviewmanagerinterop/UnstableLegacyViewManagerAutomaticShadowNode.h> |
@@ -84,21 +83,11 @@ const ComponentDescriptor& ComponentDescriptorRegistry::at( |
84 | 83 | } |
85 | 84 |
|
86 | 85 | if (it == _registryByName.end()) { |
87 | | - if (ReactNativeFeatureFlags::useFabricInterop()) { |
88 | | - auto componentDescriptor = std::make_shared< |
89 | | - const UnstableLegacyViewManagerAutomaticComponentDescriptor>( |
90 | | - parameters_, unifiedComponentName); |
91 | | - registerComponentDescriptor(componentDescriptor); |
92 | | - return *_registryByName.find(unifiedComponentName)->second; |
93 | | - } else { |
94 | | - if (_fallbackComponentDescriptor == nullptr) { |
95 | | - throw std::invalid_argument( |
96 | | - ("Unable to find componentDescriptor for " + unifiedComponentName) |
97 | | - .c_str()); |
98 | | - } else { |
99 | | - return *_fallbackComponentDescriptor.get(); |
100 | | - } |
101 | | - } |
| 86 | + auto componentDescriptor = std::make_shared< |
| 87 | + const UnstableLegacyViewManagerAutomaticComponentDescriptor>( |
| 88 | + parameters_, unifiedComponentName); |
| 89 | + registerComponentDescriptor(componentDescriptor); |
| 90 | + return *_registryByName.find(unifiedComponentName)->second; |
102 | 91 | } |
103 | 92 |
|
104 | 93 | return *it->second; |
|
0 commit comments