Ver código fonte

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

Jason Merino 6 anos atrás
pai
commit
29c47af6d4
1 arquivos alterados com 5 adições e 1 exclusões
  1. 5
    1
      ios/RCCManager.m

+ 5
- 1
ios/RCCManager.m Ver arquivo

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