Skip to content

Commit cae2534

Browse files
spredolacfacebook-github-bot
authored andcommitted
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
1 parent 18423fe commit cae2534

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Diff for: React/Modules/RCTUIManager.m

+5-1
Original file line numberDiff line numberDiff line change
@@ -1565,8 +1565,12 @@ static void RCTMeasureLayout(RCTShadowView *view,
15651565
return @{};
15661566
}
15671567

1568-
NSString *moduleName = [name stringByAppendingString:@"Manager"];
1568+
NSString *moduleName = name;
15691569
BOOL result = [delegate bridge:self.bridge didNotFindModule:moduleName];
1570+
if (!result) {
1571+
moduleName = [name stringByAppendingString:@"Manager"];
1572+
result = [delegate bridge:self.bridge didNotFindModule:moduleName];
1573+
}
15701574
if (!result) {
15711575
return @{};
15721576
}

0 commit comments

Comments
 (0)