Skip to content

Commit 159e651

Browse files
Dark Knightfacebook-github-bot
authored andcommitted
Revert D71582553
Reviewed By: rozele Differential Revision: D72190404
1 parent 4912958 commit 159e651

File tree

1 file changed

+5
-16
lines changed

1 file changed

+5
-16
lines changed

packages/react-native/ReactCommon/react/renderer/componentregistry/ComponentDescriptorRegistry.cpp

Lines changed: 5 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
#include "componentNameByReactViewName.h"
1111

1212
#include <react/debug/react_native_assert.h>
13-
#include <react/featureflags/ReactNativeFeatureFlags.h>
1413
#include <react/renderer/componentregistry/ComponentDescriptorProviderRegistry.h>
1514
#include <react/renderer/components/legacyviewmanagerinterop/UnstableLegacyViewManagerAutomaticComponentDescriptor.h>
1615
#include <react/renderer/components/legacyviewmanagerinterop/UnstableLegacyViewManagerAutomaticShadowNode.h>
@@ -84,21 +83,11 @@ const ComponentDescriptor& ComponentDescriptorRegistry::at(
8483
}
8584

8685
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;
10291
}
10392

10493
return *it->second;

0 commit comments

Comments
 (0)