File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ @implementation RNNSplashScreen
66
77+ (void )showOnWindow : (UIWindow *)window {
88 CGRect screenBounds = [UIScreen mainScreen ].bounds ;
9+ CGFloat screenScale = [UIScreen mainScreen ].scale ;
910 UIViewController *viewController = nil ;
1011
1112 NSString * launchStoryBoard = [[NSBundle mainBundle ] objectForInfoDictionaryKey: @" UILaunchStoryboardName" ];
@@ -56,6 +57,10 @@ + (void)showOnWindow:(UIWindow *)window {
5657 imageName = [imageName stringByAppendingString: @" -1100-Portrait-2436h" ];
5758 else if (screenHeight == 375 )
5859 imageName = [imageName stringByAppendingString: @" -1100-Landscape-2436h" ];
60+ else if (screenHeight == 828 )
61+ imageName = [imageName stringByAppendingString: @" -1200-Portrait-1792h" ];
62+ else if (screenHeight == 896 )
63+ imageName = [imageName stringByAppendingString: screenScale == 2 . ? @" -1200-Portrait-1792h" : @" -1200-Portrait-2688h" ];
5964
6065 image = [UIImage imageNamed: imageName];
6166 }
You can’t perform that action at this time.
0 commit comments