HomeiOS Developmentswift - React Native splash display screen on ios

swift – React Native splash display screen on ios


I’m creating an app utilizing react native and attempting so as to add a splash display screen on ios. I’ve added the next code on AppDelegate.mm

- (BOOL)software:(UIApplication *)software didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
  self.moduleName = @"eCare";
  // You possibly can add your customized preliminary props within the dictionary beneath.
  // They are going to be handed all the way down to the ViewController utilized by React Native.
  self.initialProps = @{};
  [RNSplashScreen show]; //Added this line

  return [super application:application didFinishLaunchingWithOptions:launchOptions];
}

My app is caught within the splash display screen after this. I hid the splash display screen on the basis display screen of react native. I adopted the official information right here

Blockquote

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments