Sfoglia il codice sorgente

Update RNNSplashScreen.m (#4230)

Fixed app opening on iphoneX family(X,XS,XSMAX,XR)
When you don't have a launch image and you have a Default-812h.png file in your xcassets
(you would get a black screen)
eladgel 6 anni fa
parent
commit
b7028474d5
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  1. 2
    0
      lib/ios/RNNSplashScreen.m

+ 2
- 0
lib/ios/RNNSplashScreen.m Vedi File

@@ -40,6 +40,8 @@
40 40
 			imageName = [imageName stringByAppendingString:@"-667h"];
41 41
 		else if (screenHeight == 736)
42 42
 			imageName = [imageName stringByAppendingString:@"-736h"];
43
+		else if (screenHeight == 812)
44
+			imageName = [imageName stringByAppendingString:@"-812h"];
43 45
 		
44 46
 		//xcassets LaunchImage files
45 47
 		UIImage *image = [UIImage imageNamed:imageName];