react-native-splash-screen
react-native-splash-screen copied to clipboard
Splash screen not working on iOS13/RN 0.60
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 :
-
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)
-
Interesting
logs
None
Join a screenshot or video of the problem on the simulator or device?
Today I updated my iPhone7 to iOS 13 and the splash screen is no longer working on my app.
Confirmed on iPhone 6S.
Apple has fixed the issue in iOS 13.0 beta 4.
FYI, I am facing this same issue with RN 0.60.4 on iOS 12
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
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
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?
In my case, the splash screen appears, but it doesn't hide.
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
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 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
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
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
@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.
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];
add SplashScreen.hide() in next screen after App.js will work.
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 ?
Any update on this one ?
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 ????
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.
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😅😅
Glad it helped you :)
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
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....
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
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 ...
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.