|
@@ -190,10 +190,10 @@
|
190
|
190
|
|
191
|
191
|
- (UIViewController<RNNRootViewProtocol> *)createOverlay:(NSDictionary*)layout {
|
192
|
192
|
UIViewController<RNNRootViewProtocol> *vc = [self fromTree:layout];
|
193
|
|
- RCTRootView* rootView = (RCTRootView*)vc.view;
|
|
193
|
+ __block RCTRootView* rootView = (RCTRootView*)vc.view;
|
194
|
194
|
[vc performOnRotation:^{
|
195
|
195
|
CGSize availableSize = UIApplication.sharedApplication.delegate.window.bounds.size;
|
196
|
|
- [_bridge.uiManager setSize:availableSize forView:vc.view];
|
|
196
|
+ [_bridge.uiManager setSize:availableSize forView:rootView];
|
197
|
197
|
}];
|
198
|
198
|
rootView.backgroundColor = [UIColor clearColor];
|
199
|
199
|
CGSize availableSize = UIApplication.sharedApplication.delegate.window.bounds.size;
|