Skip to content

Commit

Permalink
when the app is rotated, reload the root view.
Browse files Browse the repository at this point in the history
  • Loading branch information
siuying committed Apr 14, 2015
1 parent c412585 commit a1dfcda
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions React/Base/RCTRootView.m
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,10 @@ - (void)setUp
selector:@selector(reload)
name:RCTReloadViewsNotification
object:_bridge];
[[NSNotificationCenter defaultCenter] addObserver:self
selector:@selector(reload)
name:UIDeviceOrientationDidChangeNotification
object:nil];
if (_bridge.loaded) {
[self bundleFinishedLoading];
} else {
Expand Down

0 comments on commit a1dfcda

Please sign in to comment.