-
Remove
LaunchScreen.xib(auto-generated file from react-native init) -
Add a
LaunchImagetoImages.xcassets– OpenImages.xcassetsin Xcode, right-click under the already-defined AppIcon and chooseApp Icons & Launch Images > New iOS Launch Image -
In target settings, tap
Use Asset CatalogforLaunch ImagesunderApp Icons and Launch Imagesand have it use the newly createdLaunchImage. -
Show this (from rn-splash-screen) splash screen directly after creation of the
rootViewindidFinishLaunchingWithOptions(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];
// [...]
}