瀏覽代碼

fix iOS crash on showController (#1588)

Ran Greenberg 8 年之前
父節點
當前提交
e5244b2f76
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. 1
    1
      ios/RCCManagerModule.m

+ 1
- 1
ios/RCCManagerModule.m 查看文件

325
 {
325
 {
326
 
326
 
327
     NSMutableDictionary *modifiedGlobalProps = [globalProps mutableCopy];
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
     UIViewController *controller = [RCCViewController controllerWithLayout:layout globalProps:modifiedGlobalProps bridge:[[RCCManager sharedInstance] getBridge]];
330
     UIViewController *controller = [RCCViewController controllerWithLayout:layout globalProps:modifiedGlobalProps bridge:[[RCCManager sharedInstance] getBridge]];
331
     if (controller == nil)
331
     if (controller == nil)