Przeglądaj źródła

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

custom component.
Marian Palkus 5 lat temu
rodzic
commit
29829ae2aa
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1
    1
      lib/ios/RNNControllerFactory.m

+ 1
- 1
lib/ios/RNNControllerFactory.m Wyświetl plik

@@ -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
 }