瀏覽代碼

Fix peek and pop preview on iOS (#4735)

Yogev Ben David 5 年之前
父節點
當前提交
e7c0d166cb
No account linked to committer's email address
共有 1 個檔案被更改,包括 1 行新增0 行删除
  1. 1
    0
      lib/ios/RNNCommandsHandler.m

+ 1
- 0
lib/ios/RNNCommandsHandler.m 查看文件

@@ -106,6 +106,7 @@ static NSString* const setDefaultOptions	= @"setDefaultOptions";
106 106
 		if([vc isKindOfClass:[RNNRootViewController class]]) {
107 107
 			RNNRootViewController* rootVc = (RNNRootViewController*)vc;
108 108
 			rootVc.previewController = newVc;
109
+			[newVc renderTreeAndWait:NO perform:nil];
109 110
 			
110 111
 			rootVc.previewCallback = ^(UIViewController *vcc) {
111 112
 				RNNRootViewController* rvc  = (RNNRootViewController*)vcc;