瀏覽代碼

Adds launch image for iPhone X and iPad to showSplashScreen. (#2321)

Jason Merino 7 年之前
父節點
當前提交
29c47af6d4
共有 1 個檔案被更改,包括 5 行新增1 行删除
  1. 5
    1
      ios/RCCManager.m

+ 5
- 1
ios/RCCManager.m 查看文件

@@ -208,7 +208,11 @@
208 208
         imageName = [imageName stringByAppendingString:@"-800-667h"];
209 209
       else if (screenHeight == 736)
210 210
         imageName = [imageName stringByAppendingString:@"-800-Portrait-736h"];
211
-      
211
+      else if (screenHeight == 812)
212
+        imageName = [imageName stringByAppendingString:@"-1100-Portrait-2436h"];
213
+      else if (screenHeight == 1024)
214
+        imageName = [imageName stringByAppendingString:@"-Portrait"];
215
+
212 216
       image = [UIImage imageNamed:imageName];
213 217
     }
214 218