-
Notifications
You must be signed in to change notification settings - Fork 1.1k
LaunchImage is not hiding in iOS #87
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
+1 |
+1 |
The problem I was having was that I was calling |
I really have been removed after
but also the same problem, splash screen is not hiding, I'm using iOS 10.3 and react-native-splash-screen 3.0.1 react-native 0.44.3 |
Hi , can someone help me out. I can't get the splashscreen working for iOS, I get black screen. I am not sure if I have set it up correctly on iOS. There is only an example for customizing splashscreen on iOS. |
@YasirPanjsheri show your code of AppDelegate.m、Info.plist and Images.xcassets. |
has this problem was solved? |
It's not a problem... it's just incorrect usage. If you want help post your AppDelegate.m |
+1
Here is my LoginScreen.js (as part of StackNavigator of react-navigation):
Any help? |
@Ralcon likely you haven't linked the library properly. Are you sure you ran |
This is the output:
I'm on a mac. Are there any known issues or problems? |
same here, I have got the same problem, splash screen doesn't disappear |
@Ralcon I have deleted the ios directory in my project with This helped me and now everything is fine. |
If I add the splash screen through LaunchScreen.xib then this library works like a charm. |
Same here. But for my use case, i need to use images.xcassets instead of LaunchScreen. |
@tikkichan4 try to do the suggestion from the Nov 30, 2017 above. |
I remove [SplashScreen show] in my native code , then found some error in my js code; that is the real reason for it; sorry , my english is very poor; holp it can help |
The iOS implementation of this library creates a semi-blocking loop which is dangerous depending on where you instantiate it. I'm not entirely sure how this is all working, but from what I understand: Splash screen won't hide |
@christophermark What's the "React Native view creation"? |
@mileung it's when you create and assign the |
now anyone could solve this issue, give me some help? waiting answer on line. |
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() { "react": "^16.3.2", UPDATE While this will work, if you have an authenticated space (login/logout) with tokens, which allows the app to not always fire from the initial launch screen, the splash screen still remains and does not hide. Currently exploring additional options. UPDATE PART 2 Ok, so if your app has the potential to launch from different screens (login screen/another screen) you'll need to import RN Splash Screen and hide on both screens. Component Did Mount does not work for me on my launch screen; it does work on my other "interior" screen. Component Will Mount works everywhere. |
I had this issue, but because of an issue nothing to do with this library 🙈 Just in case anyone else is in the same boat - check that your root component doesn't have a render error! The splash screen hides react-native's default red screen error, so you might not notice properly. If your component has a render error, then your If you're using React 16, you can make this a little less confusing by changing your code to this:
|
@danieljvdm This worked for me, this issue needs to be documented in the readme @crazycodeboy |
edit: nvm, my issue was an export issue. I forgot to place 'default', when i changed my root set up. So when i imported it to the file where i register the app, it wasn't exporting correctly. Oops. |
@aditya-simplecrm did you manage to solve the issue you were facing? I am also facing the same issue, where I have to use the image assets instead of the LaunchScreen.xib. Any help would be appreciated. |
I've tried @wincod75 and @stephencookdev 's solution. But none of them are working. I'm using react-native 0.60.6 and react-native-splash-screen 3.2.0. For android it is working perfectly. In my AppDelegate file I have the required lines in the following order.
The async calls execute fine, but the splash screen doesn't hide. Any help will be appreciated. |
@ShaharyarMaroof Do this simple test... remove [RNSplashScreen show]; from your appdelegate file, rebuild your app and see what happens. I rediscovered this issue after upgrading to RN 61 and thought it was the splash screen not hiding, but I had other errors preventing the splash screen from hiding. Once i removed the [RNSplashScreen show]; and could identify and resolve my console errors, I added [RNSplashScreen show]; back and it works fine. |
@wincod75 have added try catch block in my CDM component. No errors, but SplashScreen is still not hiding. |
Getting any errors Xcode? Checked your pods/using pods? Ironically my splash screen was failing to hide today and I ended up back here, but yet again the issue was errors in RN, not this package. |
Dont use this package simply make a splash screen in xcode it will be added no need of this package, this hide method does not work. |
邮件已收到,马上看
|
I think this package has usability only in Android. iOS works better for me without it. |
邮件已收到,马上看
|
This worked for me in new version |
Mentioned here
to
I encountered this issue with: |
邮件已收到,马上看
|
1 similar comment
邮件已收到,马上看
|
Hello,
On the android platform splash screen is working fine. But on the iOS platform, splash screen is not hiding. Please guide.
The text was updated successfully, but these errors were encountered: