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

Support launch storyboards as splash screens on iOS

Open abarisic86 opened this issue 8 years ago • 13 comments

Is launch storyboard supported with this library? I can't get it to work.

abarisic86 avatar Oct 25 '17 08:10 abarisic86

I'm having the same problem trying to configure iPhone X following this tutorial The splashscreen stoped working after I added the storyboard..

maggialejandro avatar Dec 29 '17 18:12 maggialejandro

Also wondering this, as my app is using a LaunchScreen.storyboard file.

jordanmkoncz avatar Feb 06 '18 23:02 jordanmkoncz

Anyone still having this issue? Doesn't seem to play nice with .storyboard files; won't unmount the splash screen, just stays on top.

wincod75 avatar May 10 '18 04:05 wincod75

anyone know if this is an issue? Apparently in April 2020, we'll all be required to use Storyboard https://developer.apple.com/news/?id=01132020b

gwmccull avatar Feb 01 '20 00:02 gwmccull

update, I switched us to using a storyboard w/o issues. The only change was to create the storyboard and then change the project target to use that as the launch screen instead of the old LaunchScreen.xib

gwmccull avatar Feb 14 '20 02:02 gwmccull

update, I switched us to using a storyboard w/o issues. The only change was to create the storyboard and then change the project target to use that as the launch screen instead of the old LaunchScreen.xib

Hello @gwmccull, how did you do that ? I'm confused, I just can't see the reference to LaunchScreen.xib, now that I updated to a .storyboard file I can't make it work, splashscreen is always white

Victorien-Tardif avatar Mar 02 '20 16:03 Victorien-Tardif

@Victorien-Tardif did you change the Launch Screen File setting on your target? image

select your project, then select the correct target, then choose the General tab

gwmccull avatar Mar 04 '20 01:03 gwmccull

@Victorien-Tardif did you change the Launch Screen File setting on your target? image

select your project, then select the correct target, then choose the General tab

Yes of course ! But it does not work at all. No changes to make for RNSplashScreen ?

Victorien-Tardif avatar Mar 04 '20 07:03 Victorien-Tardif

@Victorien-Tardif did you change the Launch Screen File setting on your target? image select your project, then select the correct target, then choose the General tab

Yes of course ! But it does not work at all. No changes to make for RNSplashScreen ?

Well, for some reason it works when I put the file in the Base.lproj folder!

Victorien-Tardif avatar Mar 04 '20 07:03 Victorien-Tardif

In a month that is going to be a real issue.

Starting April 30, 2020, apps submitted to the App Store must use an Xcode storyboard to provide the app’s launch screen

Source: https://developer.apple.com/ios/submit/

To be ready, you should start using https://github.com/zoontek/react-native-bootsplash that already support storyboard

MoOx avatar Mar 26 '20 15:03 MoOx

I found the tutorial at React Native iOS Splash Screen with Storyboard quite helpful. I may look at the BootSplash component for a new build.

timhatch avatar Mar 28 '20 10:03 timhatch

replacing the RNSplashScreen line in AppDelegate.m did the trick for me.

changed from [RNSplashScreen showSplash:@"LaunchScreen" inRootView:rootView]; to [RNSplashScreen show];

bohomi avatar Jul 31 '20 13:07 bohomi

@bohomi

I would like to know how the show method works. Which file should be loaded?

There is code for the library, but I don't understand how it works [RNSplashScreen show];

https://github.com/crazycodeboy/react-native-splash-screen/blob/b47197626804a742b8569cad50d5e0ed92fc765c/ios/RNSplashScreen.m#L23

YOEL311 avatar Aug 27 '23 07:08 YOEL311