Browse Source

Fix peek and pop preview on iOS (#4735)

Yogev Ben David 5 years ago
parent
commit
e7c0d166cb
No account linked to committer's email address
1 changed files with 1 additions and 0 deletions
  1. 1
    0
      lib/ios/RNNCommandsHandler.m

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

106
 		if([vc isKindOfClass:[RNNRootViewController class]]) {
106
 		if([vc isKindOfClass:[RNNRootViewController class]]) {
107
 			RNNRootViewController* rootVc = (RNNRootViewController*)vc;
107
 			RNNRootViewController* rootVc = (RNNRootViewController*)vc;
108
 			rootVc.previewController = newVc;
108
 			rootVc.previewController = newVc;
109
+			[newVc renderTreeAndWait:NO perform:nil];
109
 			
110
 			
110
 			rootVc.previewCallback = ^(UIViewController *vcc) {
111
 			rootVc.previewCallback = ^(UIViewController *vcc) {
111
 				RNNRootViewController* rvc  = (RNNRootViewController*)vcc;
112
 				RNNRootViewController* rvc  = (RNNRootViewController*)vcc;