From e7c0d166cb70fa27edf68eae8a00f23257eddf9a Mon Sep 17 00:00:00 2001 From: Yogev Ben David Date: Thu, 14 Feb 2019 12:03:09 +0200 Subject: [PATCH] Fix peek and pop preview on iOS (#4735) --- lib/ios/RNNCommandsHandler.m | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/ios/RNNCommandsHandler.m b/lib/ios/RNNCommandsHandler.m index 05c46a5f624..3c5930eb84d 100644 --- a/lib/ios/RNNCommandsHandler.m +++ b/lib/ios/RNNCommandsHandler.m @@ -106,6 +106,7 @@ - (void)push:(NSString*)componentId layout:(NSDictionary*)layout completion:(RNN if([vc isKindOfClass:[RNNRootViewController class]]) { RNNRootViewController* rootVc = (RNNRootViewController*)vc; rootVc.previewController = newVc; + [newVc renderTreeAndWait:NO perform:nil]; rootVc.previewCallback = ^(UIViewController *vcc) { RNNRootViewController* rvc = (RNNRootViewController*)vcc;