mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-05 17:30:38 +08:00
Fix the lazily LaodedView to avoid weird naming issues
Summary: Fix the lazily LaodedView to avoid weird naming issues This makes more sense. i would like to not have this suffix Manager at all in play, but it is possible that some of the names should be tweaked for that. Since TurboModule is coming we should probably not invest in that removal. Reviewed By: dshahidehpour Differential Revision: D12831482 fbshipit-source-id: 1cc557cf0bdfaca35032f75823b2facb778dc3ac
This commit is contained in:
committed by
Facebook Github Bot
parent
18423fe16b
commit
cae253427a
@@ -1565,8 +1565,12 @@ RCT_EXPORT_BLOCKING_SYNCHRONOUS_METHOD(lazilyLoadView:(NSString *)name)
|
||||
return @{};
|
||||
}
|
||||
|
||||
NSString *moduleName = [name stringByAppendingString:@"Manager"];
|
||||
NSString *moduleName = name;
|
||||
BOOL result = [delegate bridge:self.bridge didNotFindModule:moduleName];
|
||||
if (!result) {
|
||||
moduleName = [name stringByAppendingString:@"Manager"];
|
||||
result = [delegate bridge:self.bridge didNotFindModule:moduleName];
|
||||
}
|
||||
if (!result) {
|
||||
return @{};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user