Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

React Native 0.73 Integration in Xcode #637

Open
city0666 opened this issue Feb 2, 2024 · 8 comments
Open

React Native 0.73 Integration in Xcode #637

city0666 opened this issue Feb 2, 2024 · 8 comments

Comments

@city0666
Copy link

city0666 commented Feb 2, 2024

  • (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

@manjuy124
Copy link

@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;
}

@city0666
Copy link
Author

city0666 commented Feb 2, 2024

its working fine thanks

@kr396
Copy link

kr396 commented Feb 2, 2024

@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!

@pierroo
Copy link

pierroo commented Feb 7, 2024

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

@JoseVov
Copy link

JoseVov commented Apr 12, 2024

@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?

@ko-devHong
Copy link

duplicate issue : #606

@ko-devHong
Copy link

@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

@WillLennon-Kopis
Copy link

WillLennon-Kopis commented May 9, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants