Pārlūkot izejas kodu

fix iOS crash on showController (#1588)

Ran Greenberg 7 gadus atpakaļ
vecāks
revīzija
e5244b2f76
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1
    1
      ios/RCCManagerModule.m

+ 1
- 1
ios/RCCManagerModule.m Parādīt failu

@@ -325,7 +325,7 @@ RCT_EXPORT_METHOD(
325 325
 {
326 326
 
327 327
     NSMutableDictionary *modifiedGlobalProps = [globalProps mutableCopy];
328
-    layout[@"props"][@"passProps"][GLOBAL_SCREEN_ACTION_COMMAND_TYPE] = COMMAND_TYPE_SHOW_MODAL;
328
+    modifiedGlobalProps[@"props"][@"passProps"][GLOBAL_SCREEN_ACTION_COMMAND_TYPE] = COMMAND_TYPE_SHOW_MODAL;
329 329
     
330 330
     UIViewController *controller = [RCCViewController controllerWithLayout:layout globalProps:modifiedGlobalProps bridge:[[RCCManager sharedInstance] getBridge]];
331 331
     if (controller == nil)