浏览代码

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 年前
父节点
当前提交
b7028474d5
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2
    0
      lib/ios/RNNSplashScreen.m

+ 2
- 0
lib/ios/RNNSplashScreen.m 查看文件

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