Sfoglia il codice sorgente

Fix peek and pop preview on iOS (#4735)

Yogev Ben David 5 anni fa
parent
commit
e7c0d166cb
No account linked to committer's email address
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. 1
    0
      lib/ios/RNNCommandsHandler.m

+ 1
- 0
lib/ios/RNNCommandsHandler.m Vedi File

@@ -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;