-
Remove
LaunchScreen.xib
(auto-generated file from react-native init) -
Add a
LaunchImage
toImages.xcassets
– OpenImages.xcassets
in Xcode, right-click under the already-defined AppIcon and chooseApp Icons & Launch Images > New iOS Launch Image
-
In target settings, tap
Use Asset Catalog
forLaunch Images
underApp Icons and Launch Images
and have it use the newly createdLaunchImage
. -
Show this (from rn-splash-screen) splash screen directly after creation of the
rootView
indidFinishLaunchingWithOptions
(found in<project>/ios/<project>/AppDelegate.m
):
// [...]
#import <RCTSplashScreen/RCTSplashScreen.h>
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
// [...]
RCTRootView *rootView = // [...]
// Show splash screen (rn-splash-screen)
[RCTSplashScreen show:rootView];
// [...]
}