Skip to content

Commit

Permalink
Proper implementation of [RCTWrapper sizeThatFits:]
Browse files Browse the repository at this point in the history
Differential Revision: D6677097

fbshipit-source-id: 8ab3567cd6b0b23e89b8048d324b86700a01979b
  • Loading branch information
shergin authored and facebook-github-bot committed Jan 8, 2018
1 parent 67a3c42 commit c756122
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Libraries/Wrapper/RCTWrapperView.m
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ - (CGSize)sizeThatFits:(CGSize)size
{ {
UIView *contentView = self.contentView; UIView *contentView = self.contentView;
if (!contentView) { if (!contentView) {
return size; return [super sizeThatFits:size];
} }


return [contentView sizeThatFits:size]; return [contentView sizeThatFits:size];
Expand Down

0 comments on commit c756122

Please sign in to comment.