mirror of
https://github.com/facebook/react-native.git
synced 2026-11-18 20:19:07 +00:00
Fabric: Removing a workaround from ComponentDescriptorRegistry
Summary: We used that on iOS only before we had `ComponentDescriptorProviderRequest`. Now iOS does not use `_fallbackComponentDescriptor`. On Android we still use `_fallbackComponentDescriptor` but set that explicitly via `ComponentDescriptorRegistry::setFallbackComponentDescriptor`. Changelog: [Internal] Fabric-specific internal change. Reviewed By: sammy-SC Differential Revision: D19103296 fbshipit-source-id: fb2a2142afb183145fd3c8e48f620cb3f316c0bb
This commit is contained in:
1 parent
f464dad5d4
commit
9e2e754555
1 file changed
-6
@@ -39,12 +39,6 @@ void ComponentDescriptorRegistry::add(
|
||||
_registryByHandle[componentDescriptorProvider.handle] =
|
||||
sharedComponentDescriptor;
|
||||
_registryByName[componentDescriptorProvider.name] = sharedComponentDescriptor;
|
||||
|
||||
if (strcmp(componentDescriptorProvider.name, "UnimplementedNativeView") ==
|
||||
0) {
|
||||
auto *self = const_cast<ComponentDescriptorRegistry *>(this);
|
||||
self->setFallbackComponentDescriptor(sharedComponentDescriptor);
|
||||
}
|
||||
}
|
||||
|
||||
void ComponentDescriptorRegistry::registerComponentDescriptor(
|
||||
|
||||
Reference in new issue
Block a user