-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Open
Description
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
Labels
No labels