Browse Source

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 years ago
parent
commit
b7028474d5
1 changed files with 2 additions and 0 deletions
  1. 2
    0
      lib/ios/RNNSplashScreen.m

+ 2
- 0
lib/ios/RNNSplashScreen.m View 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];