Browse Source

Possible fix for crash on ios when setting topbar left buttons with (#5189)

custom component.
Marian Palkus 5 years ago
parent
commit
29829ae2aa
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      lib/ios/RNNControllerFactory.m

+ 1
- 1
lib/ios/RNNControllerFactory.m View File

@@ -188,7 +188,7 @@
188 188
 	RNNLayoutInfo* layoutInfo = [[RNNLayoutInfo alloc] initWithNode:node];
189 189
 	RNNNavigationOptions* options = [[RNNNavigationOptions alloc] initWithDict:node.data[@"options"]];;
190 190
 
191
-	RNNSideMenuChildVC *sideMenuChild = [[RNNSideMenuChildVC alloc] initWithLayoutInfo:layoutInfo creator:_creator options:options defaultOptions:_defaultOptions presenter:[[RNNViewControllerPresenter alloc] init] eventEmitter:_eventEmitter childViewController:childVc type:type];
191
+	RNNSideMenuChildVC *sideMenuChild = [[RNNSideMenuChildVC alloc] initWithLayoutInfo:layoutInfo creator:_creator options:options defaultOptions:_defaultOptions presenter:[[RNNViewControllerPresenter alloc] initWithComponentRegistry:_componentRegistry] eventEmitter:_eventEmitter childViewController:childVc type:type];
192 192
 	
193 193
 	return sideMenuChild;
194 194
 }