Skip to content

Commit

Permalink
Possible fix for crash on ios when setting topbar left buttons with (#…
Browse files Browse the repository at this point in the history
…5189)

custom component.
  • Loading branch information
MarianPalkus authored and yogevbd committed Jun 20, 2019
1 parent 663b1c3 commit 29829ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ios/RNNControllerFactory.m
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 29829ae

Please sign in to comment.