Skip to content

Commit

Permalink
Fix the lazily LaodedView to avoid weird naming issues
Browse files Browse the repository at this point in the history
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
  • Loading branch information
spredolac authored and facebook-github-bot committed Oct 30, 2018
1 parent 18423fe commit cae2534
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion React/Modules/RCTUIManager.m
Original file line number Diff line number Diff line change
Expand Up @@ -1565,8 +1565,12 @@ static void RCTMeasureLayout(RCTShadowView *view,
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 @{};
}
Expand Down

0 comments on commit cae2534

Please sign in to comment.