react-native-splash-screen icon indicating copy to clipboard operation
react-native-splash-screen copied to clipboard

React Native 0.73 Integration in Xcode

Open city0666 opened this issue 1 year ago • 8 comments
trafficstars

  • (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { self.moduleName = @"dhignaevents"; // You can add your custom initial props in the dictionary below. // They will be passed down to the ViewController used by React Native. // [RNSplashScreen showSplash:@"LaunchScreen" inRootView:rootView]; self.initialProps = @{}; [RNSplashScreen show];

    return [super application:application didFinishLaunchingWithOptions:launchOptions];

}

stuck in splash screen any idea to solve

city0666 avatar Feb 02 '24 03:02 city0666

@city0666 try this!

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
  self.moduleName = @"dhignaevents";

  self.initialProps = @{};

  bool didLaunchFinish = [super application:application didFinishLaunchingWithOptions:launchOptions];

  [RNSplashScreen show];
  
  return didLaunchFinish;
}

manjuy124 avatar Feb 02 '24 04:02 manjuy124

its working fine thanks

city0666 avatar Feb 02 '24 05:02 city0666

@city0666 try this!

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
  self.moduleName = @"dhignaevents";

  self.initialProps = @{};

  bool didLaunchFinish = [super application:application didFinishLaunchingWithOptions:launchOptions];

  [RNSplashScreen show];
  
  return didLaunchFinish;
}

This worked for me. Thanks!

kr396 avatar Feb 02 '24 09:02 kr396

btw I don't mean to hijack your post, but did you manage to integrate for android in RN 0.73.+ with their new MainActivity and MainApplication kotlin files (instead of java)?

@manjuy124 if you pass by... :)

image

pierroo avatar Feb 07 '24 17:02 pierroo

@city0666 try this!

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
  self.moduleName = @"dhignaevents";

  self.initialProps = @{};

  bool didLaunchFinish = [super application:application didFinishLaunchingWithOptions:launchOptions];

  [RNSplashScreen show];
  
  return didLaunchFinish;
}

wow, Magical. But why does this work?? 🤔

Does anyone know what the magic behind this is?

JoseVov avatar Apr 12 '24 15:04 JoseVov

duplicate issue : #606

ko-devHong avatar May 08 '24 09:05 ko-devHong

@city0666 try this!

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
  self.moduleName = @"dhignaevents";

  self.initialProps = @{};

  bool didLaunchFinish = [super application:application didFinishLaunchingWithOptions:launchOptions];

  [RNSplashScreen show];
  
  return didLaunchFinish;
}

wow, Magical. But why does this work?? 🤔

Does anyone know what the magic behind this is?

@JoseVov The answer lies in the issue #606

ko-devHong avatar May 08 '24 09:05 ko-devHong

When i try this, i get the error No visible @interface for 'UIResponder' declares the selector 'application:didFinishLaunchingWithOptions:'. I've tried another solution and it seems to have the same issue with the [super ...] part of it. Any ideas?

Same issue was brought up in #606 here and doesn't appear to be addressed.

WillLennon-Kopis avatar May 09 '24 17:05 WillLennon-Kopis