From 29829ae2aa972fa7df20cd50e0d43efa8991fbf2 Mon Sep 17 00:00:00 2001 From: Marian Palkus Date: Thu, 20 Jun 2019 15:56:06 +0200 Subject: [PATCH] Possible fix for crash on ios when setting topbar left buttons with (#5189) custom component. --- lib/ios/RNNControllerFactory.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ios/RNNControllerFactory.m b/lib/ios/RNNControllerFactory.m index 40e8b103fca..17c7d14ffa7 100644 --- a/lib/ios/RNNControllerFactory.m +++ b/lib/ios/RNNControllerFactory.m @@ -188,7 +188,7 @@ - (UIViewController *)createSideMenuChild:(RNNLayoutNode*)node type:(RNNSideMenu RNNLayoutInfo* layoutInfo = [[RNNLayoutInfo alloc] initWithNode:node]; RNNNavigationOptions* options = [[RNNNavigationOptions alloc] initWithDict:node.data[@"options"]];; - RNNSideMenuChildVC *sideMenuChild = [[RNNSideMenuChildVC alloc] initWithLayoutInfo:layoutInfo creator:_creator options:options defaultOptions:_defaultOptions presenter:[[RNNViewControllerPresenter alloc] init] eventEmitter:_eventEmitter childViewController:childVc type:type]; + RNNSideMenuChildVC *sideMenuChild = [[RNNSideMenuChildVC alloc] initWithLayoutInfo:layoutInfo creator:_creator options:options defaultOptions:_defaultOptions presenter:[[RNNViewControllerPresenter alloc] initWithComponentRegistry:_componentRegistry] eventEmitter:_eventEmitter childViewController:childVc type:type]; return sideMenuChild; }