Browse Source

fix iOS crash on showController (#1588)

Ran Greenberg 7 years ago
parent
commit
e5244b2f76
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      ios/RCCManagerModule.m

+ 1
- 1
ios/RCCManagerModule.m View File

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