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

Splash screen not working on iOS13/RN 0.60

Open vmurillo opened this issue 5 years ago • 26 comments

Run react-native info in your project and share the content.

⋊> ~/c/w/mobile on feature/addFriendIntegration ⨯ react-native info 10:21:05 info React Native Environment Info: System: OS: macOS 10.14.5 CPU: (4) x64 Intel(R) Core(TM) i5-5350U CPU @ 1.80GHz Memory: 233.89 MB / 8.00 GB Shell: 3.0.2 - /usr/local/bin/fish Binaries: Node: 8.11.3 - /usr/local/bin/node Yarn: 1.15.2 - /usr/local/bin/yarn npm: 6.9.0 - /usr/local/bin/npm Watchman: 4.9.0 - /usr/local/bin/watchman SDKs: iOS SDK: Platforms: iOS 12.2, macOS 10.14, tvOS 12.2, watchOS 5.2 Android SDK: API Levels: 25, 26, 27, 28, 29 Build Tools: 28.0.3, 29.0.0 System Images: android-28 | Google Play Intel x86 Atom, android-Q | Google APIs Intel x86 Atom IDEs: Android Studio: 3.4 AI-183.6156.11.34.5522156 Xcode: 10.2.1/10E1001 - /usr/bin/xcodebuild npmPackages: react: 16.8.3 => 16.8.3 react-native: 0.59.3 => 0.59.3 npmGlobalPackages: react-native-asset: 1.1.3 react-native-cli: 2.0.1

What react-native-splash-screen version are you using?

"react-native-splash-screen": "^3.2.0",

What platform does your issue occur on? (Android/iOS/Both) iOS13

Describe your issue as precisely as possible :

  1. Steps to reproduce the issue or to explain in which case you get the issue I installed iOS 13 on my phone and the splash screen doesn't stays until it is hidden by js code (blank screen flashing is back again)

  2. Interesting logs None

Join a screenshot or video of the problem on the simulator or device?

ezgif-4-77e7f9b65da9

Today I updated my iPhone7 to iOS 13 and the splash screen is no longer working on my app.

vmurillo avatar Jul 03 '19 15:07 vmurillo

Confirmed on iPhone 6S.

zearthur99 avatar Jul 08 '19 20:07 zearthur99

Apple has fixed the issue in iOS 13.0 beta 4.

firatciftci avatar Jul 15 '19 22:07 firatciftci

FYI, I am facing this same issue with RN 0.60.4 on iOS 12

vmurillo avatar Aug 06 '19 18:08 vmurillo

Same problem here with RN 0.60.4 on iOS 12.3.1

Edit: in my case using [RNSplashScreen showSplash:@"LaunchScreen" inRootView:rootView] instead of [RNSplashScreen show]

is working

x86kernel avatar Aug 13 '19 08:08 x86kernel

Can anyone help me for me using [RNSplashScreen show] shows up a black screen and if I use [RNSplashScreen showSplash:@"LaunchScreen" inRootView:rootView] app is getting crashed

jamesawer3 avatar Aug 23 '19 05:08 jamesawer3

Can anyone help me for me using [RNSplashScreen show] shows up a black screen and if I use [RNSplashScreen showSplash:@"LaunchScreen" inRootView:rootView] app is getting crashed

Same for me, any solutions?

matantech avatar Sep 24 '19 14:09 matantech

In my case, the splash screen appears, but it doesn't hide.

cmcaboy avatar Sep 25 '19 00:09 cmcaboy

Can anyone help me for me using [RNSplashScreen show] shows up a black screen and if I use [RNSplashScreen showSplash:@"LaunchScreen" inRootView:rootView] app is getting crashed

Black screen only in iOS 13, same using [RNSplashScreen showSplash:@"LaunchScreen" inRootView:rootView]. Still I'm not sure it's related to the splash-screen, gonna investigate more

ivanfranchi avatar Sep 26 '19 07:09 ivanfranchi

Can anyone help me for me using [RNSplashScreen show] shows up a black screen and if I use [RNSplashScreen showSplash:@"LaunchScreen" inRootView:rootView] app is getting crashed

This is the same as I am getting, help or a solution would be really good.

simonwalker-celadin avatar Sep 27 '19 15:09 simonwalker-celadin

@simonwalker-celadin Add LaunchImage with all the sizes given there in Images.xcassets then go to targets add the launchImage name which you have created in Images.xcassets to Launch Screen File in general settings tab of the app target

Screen Shot 2019-09-30 at 11 13 25 AM

jamesawer3 avatar Sep 30 '19 05:09 jamesawer3

I'm getting the same blank black screen using [RNSplashScreen show] and if I tried [RNSplashScreen showSplash:@"LaunchScreen" inRootView:rootView] Got this error Use of undeclared identifier 'rootView' RN version 0.61.1

AFoaad avatar Oct 07 '19 10:10 AFoaad

I had the same issue on React Native 0.59.0, updated to 0.59.10 and problem solved. This PR solved my issue : https://github.com/facebook/react-native/pull/25146

remigarcia avatar Oct 07 '19 10:10 remigarcia

@mahomahoxd @simonwalker-celadin You can try to add this in ios/*.xcodeproj/project.pbxproj:

buildSettings = {
  ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
+ ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage;
}

it works for me, Reference to Xcode 10.

hezhii avatar Oct 09 '19 10:10 hezhii

I'm using Expo but in the ejected version. If I used [RNSplashScreen show]; the splash screen didn't disappear.

Now I'm using: [RNSplashScreen showSplash:@"LaunchScreen" inRootView:self.window.rootViewController];

phr85 avatar Oct 22 '19 05:10 phr85

add SplashScreen.hide() in next screen after App.js will work.

hasgar-aot avatar Dec 30 '19 08:12 hasgar-aot

I'm an expo user, when I used this library it showed a splash screen twice on Android, one by expo and one by this library. I could fix it by adding

<resources>
    <!-- Base application theme. -->
    <style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">
        <!-- Customize your theme here. -->
        <!--设置透明背景-->
        <item name="android:windowIsTranslucent">true</item>
    </style>
</resources>

but when click to the app icon on Mobile Home Screen, it takes a delay to pop up the app(about 1 or 2 seconds). Remove the option above make it run normally. Any guy has the same problem ?

roger-ngx avatar Feb 17 '20 08:02 roger-ngx

Any update on this one ?

avinashlng1080 avatar Feb 26 '20 07:02 avinashlng1080

Can anyone help me for me using [RNSplashScreen show] shows up a black screen and if I use [RNSplashScreen showSplash:@"LaunchScreen" inRootView:rootView] app is getting crashed

This is the same as I am getting, help or a solution would be really good.

have you solved it ????

JeffreyCheong avatar May 21 '20 17:05 JeffreyCheong

For the ones still having issues, try this if your splash screen is giving you white or dark screen depending on your system color and not the actual custom splash screen:

  • Simulator -> Device -> Erase All Content and Settings
  • Go to XCode -> Preferences -> Locations -> Derived Data -> Delete everything inside this folder.

pedpess avatar Jun 10 '20 13:06 pedpess

For the ones still having issues, try this if your splash screen is giving you white or dark screen depending on your system color and not the actual custom splash screen:

  • Simulator -> Device -> Erase All Content and Settings
  • Go to XCode -> Preferences -> Locations -> Derived Data -> Delete everything inside this folder.

you save my life dude😅😅

imamabdulazis avatar Aug 13 '20 09:08 imamabdulazis

Glad it helped you :)

pedpess avatar Aug 13 '20 10:08 pedpess

For the ones still having issues, try this if your splash screen is giving you white or dark screen depending on your system color and not the actual custom splash screen:

  • Simulator -> Device -> Erase All Content and Settings
  • Go to XCode -> Preferences -> Locations -> Derived Data -> Delete everything inside this folder.

God bless u

berkbaski avatar Oct 23 '20 10:10 berkbaski

Hi,

For some kind of reason with different icons for the splash screen, it works just fine, but the current one that I have for the project I am having does not work and I have no clue why this is happening .....

Also in the LaunchScreen.xib the previewer or how it's cold shows exactly what I would like to achieve but nothing seems to work.......

Anyone else has an idea how to solve this problem....

Mihai-github avatar May 31 '21 19:05 Mihai-github

Can anyone help me for me using [RNSplashScreen show] shows up a black screen and if I use [RNSplashScreen showSplash:@"LaunchScreen" inRootView:rootView] app is getting crashed

Same Issue

MuhammadUmar474 avatar Dec 10 '21 05:12 MuhammadUmar474

For the ones still having issues, try this if your splash screen is giving you white or dark screen depending on your system color and not the actual custom splash screen:

  • Simulator -> Device -> Erase All Content and Settings
  • Go to XCode -> Preferences -> Locations -> Derived Data -> Delete everything inside this folder.

Unfortunately didn't work for me Any other Solution Please ...

MuhammadUmar474 avatar Dec 10 '21 06:12 MuhammadUmar474

Same problem here with RN 0.60.4 on iOS 12.3.1

Edit: in my case using [RNSplashScreen showSplash:@"LaunchScreen" inRootView:rootView] instead of [RNSplashScreen show]

is working

Add semicolon at the end otherwise it will show error.

zaheerkhalil321 avatar Jul 15 '22 20:07 zaheerkhalil321