mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
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:
committed by
Facebook GitHub Bot
parent
e28d15fca5
commit
2b82832e59
+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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user