[IOS ISSUE]: SplashScreen.show() not working on iOS after react-native layer running
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.
Hi guys,
I have the following configuration:
react-native: 0.76.5 react-native-splash-screen: ^3.3.0
I'm experiencing the same issue. I tried adding [RNSplashScreen show]; to my AppDelegate.mm file, but my app gets stuck on the splash screen.
Does anyone have a solution for this?
I tried this https://github.com/crazycodeboy/react-native-splash-screen/issues/637#issuecomment-1922781411 solution.
And it works for me!
@saladestomateoignon Try this solution once. It might help you. Thanks!
π Consider Using react-native-splash-view Instead!
Hey there! π If you're facing issues with AppDelegate changes in React Native 0.76+, you might want to try [react-native-splash-view] instead!
β
Why switch to react-native-splash-view?
- Fully compatible with React Native 0.76+, including Swift-based AppDelegate.
- No extra hassleβworks smoothly with both Objective-C & Swift projects.
- Simple integration with iOS storyboard splash screens & Android launch screens.
- Lightweight & actively maintained for the latest React Native versions.
Check it out & give it a try! πβ¨
Hi guys,
I have the following configuration:
react-native: 0.76.5 react-native-splash-screen: ^3.3.0
I'm experiencing the same issue. I tried adding
[RNSplashScreen show];to my AppDelegate.mm file, but my app gets stuck on the splash screen.Does anyone have a solution for this?
me too
me too ...
react-native: 0.76.5 react-native-splash-screen: ^3.3.0
it works on Android, but not on iOS ...
my app shows no launch screen image ...