Skip to content

Commit a1dfcda

Browse files
committed
when the app is rotated, reload the root view.
Fixes facebook#813
1 parent c412585 commit a1dfcda

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

React/Base/RCTRootView.m

+4
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,10 @@ - (void)setUp
109109
selector:@selector(reload)
110110
name:RCTReloadViewsNotification
111111
object:_bridge];
112+
[[NSNotificationCenter defaultCenter] addObserver:self
113+
selector:@selector(reload)
114+
name:UIDeviceOrientationDidChangeNotification
115+
object:nil];
112116
if (_bridge.loaded) {
113117
[self bundleFinishedLoading];
114118
} else {

0 commit comments

Comments
 (0)