You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It works fine so far (no updates, nothing new), but splash screen now doesn't disappear, no error in build. If I remove [Splashscreen show] from the AppDelegate.m file it works, but I want to have some delay. What it could be? It just stopped working, and if I even get back to my previous commits, it still no effect. Could it be problem with my OS or simulator? I don't yet check on real device.
mee too,the error message
Class PLBuildVersion is implemented in both /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/PrivateFrameworks/AssetsLibraryServices.framework/AssetsLibraryServices (0x124c2ecc0) and /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/PrivateFrameworks/PhotoLibraryServices.framework/PhotoLibraryServices (0x124a456f0). One of the two will be used. Which one is undefined.
I am having just exactly the same problem as @Ralcon described. Any improvements on this issue?
The app is working on Android but on iOS it just stoped at this stage.
If I add the splash screen through LaunchScreen.xib then this library works like a charm.
But if I add splash screen images in Images.xcassets then splash screen is not hiding.
In Android I used a Handler to Hide Splash inside native code after 2,5 seconds, so there's no need to hide splash with Javascript. I know this is not the best solution but its working. Inside the onCreate method of the MainActivity put a handler like this:
This is not the first time that I had this issue. So this message it's for myself in future;
To fix on iOS make sure that [RNSplashScreen show]; is the last thing before return YES;
While it's not recommended to use this lib anymore, now that I upgraded from RN 0.70 to 0.71 using the Upgrade Helper, I inadvertedly broke it in my iOS app (I was unable to hide the splash screen) after applying the patch, because said patch now calls the corresponding method on the superclass. I managed to fix it by changing
BOOL ret = [super application:application didFinishLaunchingWithOptions:launchOptions];
if (ret == YES) {
[RNSplashScreen show];
}
return ret;
This makes sure that the method show() is the last thing called, as the docs of the lib recommend.
Reacted by Sergey Grabak, Animesh Priyadarshi, Mohamed Kabha, Stanislav Gromov, hyojooo, Chathura Devinda, vini-md, Bruno Babic, Muhammad Zahid, QQizi and 9 more
Reacted by Chamal De Silva, Diptimaya Patra, falola adedayo, Subhankar Dutta, TheAB and Senad Metiljevic
Reacted by Muhammad Zahid, QQizi, Tenzin Kunkyab, Diptimaya Patra, falola adedayo, ayush gupta, Subhankar Dutta and TheAB
Reacted by medmo7, Mohamed Kabha, Chathura Devinda, vini-md, Bruno Babic, Gabriel Haruki, Muhammad Zahid, QQizi, Tenzin Kunkyab, Rohan Dave and 5 more
for me the issue was in link package step if you try to run yarn install or yarn add <packagename>
you will note the the link step will fail.
updating yarn by using yarn set version stable then run yarn install solve my issue
Activity
sayhei commentedon Aug 1, 2017
mee too,the error message
Class PLBuildVersion is implemented in both /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/PrivateFrameworks/AssetsLibraryServices.framework/AssetsLibraryServices (0x124c2ecc0) and /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/PrivateFrameworks/PhotoLibraryServices.framework/PhotoLibraryServices (0x124a456f0). One of the two will be used. Which one is undefined.
emin93 commentedon Aug 15, 2017
Out of curiosity, are you using the wix navigator (react-native-navigation)?
Gp2mv3 commentedon Aug 16, 2017
@emin93 I just switched to react-native-navigation and it started to bug... Do you have a solution ?
hustlerism commentedon Aug 17, 2017
Same thing happened to me on Android.
Any solution for this?
fmoessle commentedon Sep 2, 2017
same for me on android, and I am using wix navigation
hustlerism commentedon Sep 4, 2017
I managed to solve this issue by removing
SplashScreen.show()Gp2mv3 commentedon Sep 4, 2017
I did the same but then the splashscreen never shows...
romanglom commentedon Sep 24, 2017
Anyone figured out how to fix it?
I have the same problem in Android.
"react-native": "^0.47.0",
"react-native-splash-screen": "^3.0.1",
And I'm also using react-native-navigation from wix.
6axter82 commentedon Nov 24, 2017
I am having just exactly the same problem as @Ralcon described. Any improvements on this issue?
The app is working on Android but on iOS it just stoped at this stage.
aditya-simplecrm commentedon Dec 18, 2017
Any solution?
aditya-simplecrm commentedon Dec 18, 2017
If I add the splash screen through LaunchScreen.xib then this library works like a charm.
But if I add splash screen images in Images.xcassets then splash screen is not hiding.
6axter82 commentedon Dec 18, 2017
Did you have a look in #87?
cihadturhan commentedon Apr 25, 2018
android, v3.0.6 with react-native v0.54.4.
Sometimes splash screen stays forever, although I explicitly call
SplashScreen.hide()wincod75 commentedon May 18, 2018
So, I had the same exact issue, this is how I fixed it. Seems a bit glitchy in my emulator, will test on actual device.
change -> DidMount to -> WillMount
componentWillMount() {
SplashScreen.hide();
}
"react": "^16.3.2",
"react-native": "^0.55.4"
12 remaining items
Jyrno42 commentedon Mar 28, 2019
Make sure to call
SplashScreen.showbefore the call to super.onCreate, e.g this worked for me:while these resulted in empty white screen after call to
SplashScreen.hide:rochapablo commentedon May 24, 2019
This is not the first time that I had this issue. So this message it's for myself in future;
To fix on iOS make sure that
[RNSplashScreen show];is the last thing beforereturn YES;kumarutsav111 commentedon Jun 13, 2019
I am also facing the same issue as you like in release build splash screen hangs and not moving to next screen. Any solutions ?
KristineTrona commentedon Jun 20, 2019
Same issue here - in debug build it works just fine, but on release stays stuck
eai301 commentedon Jul 3, 2019
1+
bernhardt1 commentedon Jul 3, 2019
The issue for me is unpredictable. None of the behavior seems to make sense but here is what I'm seeing ->
I haven't tried a release build yet.
Vahn84 commentedon Aug 1, 2019
This is the correct fix for iOS
ckOfor commentedon Oct 24, 2019
This is the fix for iOS :) thanks @rochapablo
edu1525 commentedon May 17, 2020
In Android I used a Handler to Hide Splash inside native code after 2,5 seconds, so there's no need to hide splash with Javascript. I know this is not the best solution but its working. Inside the onCreate method of the MainActivity put a handler like this:
@Override protected void onCreate(Bundle savedInstanceState) { SplashScreen.show(MainActivity.this); super.onCreate(savedInstanceState); new Handler().postDelayed(() -> SplashScreen.hide(MainActivity.this), 2500); }nikhilsmg commentedon Jun 14, 2020
Worked for me:
1.Delete (index.android.bundle) files inside directory android/app/src/main/assets.
2.run react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res
3.Delete folders (drawable,drawable-hdpi,drawable-mdpi,drawable-xhdpi,drawable-xxhdpi,drawable-xxxhdpi,raw) inside android/app/src/main/res
4.run react-native run-android --variant=release
import android.os.Handler;
@OverRide
protected void onCreate(Bundle savedInstanceState) {
SplashScreen.show(MainActivity.this);
super.onCreate(savedInstanceState);
new Handler().postDelayed(() -> SplashScreen.hide(MainActivity.this), 2500);
}
ericrguimaraes commentedon Apr 19, 2023
While it's not recommended to use this lib anymore, now that I upgraded from RN 0.70 to 0.71 using the Upgrade Helper, I inadvertedly broke it in my iOS app (I was unable to hide the splash screen) after applying the patch, because said patch now calls the corresponding method on the superclass. I managed to fix it by changing
to
This makes sure that the method show() is the last thing called, as the docs of the lib recommend.
davidfarinha commentedon May 16, 2023
Thankyou! This worked for me on react-native 0.70+ and react-native-splash-screen 3.2.0.
zahid502 commentedon Oct 2, 2023
[RNSplashScreen show]; return [super application:application didFinishLaunchingWithOptions:launchOptions];to
BOOL ret = [super application:application didFinishLaunchingWithOptions:launchOptions]; if (ret == YES) { [RNSplashScreen show]; } return ret;@ericrguimaraes Thank you, it's worked for me.
I encountered this issue with:
"react-native": "0.72.4"
"react-native-splash-screen": "^3.3.0"
tariqj86 commentedon Mar 2, 2025
for me the issue was in link package step if you try to run
yarn installoryarn add <packagename>you will note the the link step will fail.
updating yarn by using
yarn set version stablethen runyarn installsolve my issue