Skip to content

Commit

Permalink
Set autoresizingMask to redraw root when resizing RN window
Browse files Browse the repository at this point in the history
Reviewed By: javache

Differential Revision: D3177081

fb-gh-sync-id: 987167033329413cd0a4b296ca849758ec87368c
fbshipit-source-id: 987167033329413cd0a4b296ca849758ec87368c
  • Loading branch information
olegbl authored and Facebook Github Bot 0 committed Apr 14, 2016
1 parent b2ecc83 commit e02d400
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions React/Base/RCTRootView.m
Expand Up @@ -74,6 +74,7 @@ - (instancetype)initWithBridge:(RCTBridge *)bridge
_loadingViewFadeDelay = 0.25;
_loadingViewFadeDuration = 0.25;
_sizeFlexibility = RCTRootViewSizeFlexibilityNone;
self.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;

[[NSNotificationCenter defaultCenter] addObserver:self
selector:@selector(bridgeDidReload)
Expand Down

0 comments on commit e02d400

Please sign in to comment.