Skip to content

Commit

Permalink
Fix peek and pop preview on iOS (#4735)
Browse files Browse the repository at this point in the history
  • Loading branch information
yogevbd authored Feb 14, 2019
1 parent 8ba9796 commit e7c0d16
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/ios/RNNCommandsHandler.m
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit e7c0d16

Please sign in to comment.