Skip to content

[IOS ISSUE]: SplashScreen.show() not working on iOS after react-native layer running #661

Description

@saladestomateoignon

Hello guys,

I have the following config:

  • react-native: 0.72.12,
  • react-native-splash-screen: 3.3.0.

My AppDelegate.mm looks like this:


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

  BOOL didFinish = [super application:application didFinishLaunchingWithOptions:launchOptions];
  if (didFinish == YES) {
    [RNSplashScreen show];
  }
  return didFinish;
}

After my app booted, I am able to hide by calling SplashScreen.hide() inside a useEffect, like this;

useEffect(() => SplashScreen.hide(), []);

However, if I want to call SplashScreen.show() inside my react-native layer, it simply does not work. The function does nothing.
This issue happens ONLY ON IOS (on Android, calling SplashScreen.show() works perfectly).

Have you ever encountered this issue before? Any tips for making it work?

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions