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:
Slobodan Predolac
2018-10-30 14:39:37 -07:00
committed by Facebook Github Bot
parent 18423fe16b
commit cae253427a

View File

@@ -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 @{};
}