check for prefix in automatic interop layer

Summary:
changelog: [internal]

This mimics what interop layer does in LegacyViewManagerInteropComponentDescriptor.

https://www.internalfb.com/code/fbsource/[f80a9affe2cc]/xplat/js/react-native-github/packages/react-native/ReactCommon/react/renderer/components/legacyviewmanagerinterop/LegacyViewManagerInteropComponentDescriptor.mm?lines=62

Reviewed By: cipolleschi

Differential Revision: D52627132

fbshipit-source-id: 894a40b51ec4189a6bf22db4f612c0b14594d52a
This commit is contained in:
Samuel Susla authored and Facebook GitHub Bot committed 2024-01-09 10:41:43 -08:00
1 parent e28d15fca5
commit 2b82832e59
1 file changed
+2 -1
@@ -147,7 +147,8 @@ static NSString *const kRCTLegacyInteropChildIndexKey = @"index";
supportedLegacyViewComponents[moduleName] = moduleClass;
}
if ([moduleName isEqualToString:componentName]) {
if ([moduleName isEqualToString:componentName] ||
[moduleName isEqualToString:[@"RCT" stringByAppendingString:componentName]]) {
return YES;
}
}