-
Notifications
You must be signed in to change notification settings - Fork 1.1k
not working splash screen for react-native 0.71.0 #606
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
Same here, not working on 0.71 ios |
I think thi is just a problem with the documentation.
It works on android with :
|
I changed the return to something like this and it worked
|
Thank you for that feedback! It worked here :) |
You can show splash screen like below code snippet. It works fines for the latest React Native Version (0.71.1).
Reason why this happens: Hope you will find this solution insightful. |
@Huzaifa1911 Your solution worked for me. Thanks. |
@Huzaifa1911 Thanks man! I was trying to fix this for 6 hours, you saved me. 🥳 |
@Huzaifa1911 Thank you.. my problem is solved! |
@Huzaifa1911 Works good! Thanks. |
@Guilleanto you have to add the following line at the top of the MainActivity.java file:
|
Works! thank you so much.... solved! |
I was trying to fix this for over 1 day, thanks @Huzaifa1911 |
The solution works for me but how can I increase the duration the splash screen shows for? I used setTimeout in useEffect but that didn't work. |
I have the same problem using reactNative "react-native": "0.71.3", and "react-native-splash-screen": "^3.3.0". Has anyone been able to solve this using these versions? |
@Yureyny I have those version too and the solution given by @Huzaifa1911 above worked. Please read the entire issue. |
Thank you! I have already solved the problem, only in ios it closes quite quickly, anything to add in this regard? |
|
@AFDHAL2009 I think you didn't import the libraries correctly. In MainActivity.java, you need to add below line. |
@Huzaifa1911 thanks I try to add with the correct import the app launch but crash happen ,so i replace this by null |
when I put this line [super application:application didFinishLaunchingWithOptions:launchOptions]; to app delegate I got this issue: any solution? |
i dont necessarily think its the documentation. the
it seems the fix you posted still has im sure there is a reason the react-native team changed the return statement. either way it seems we have to change it back to get the splash screen to work again. |
|
//Add |
@Huzaifa1911 works perfectly |
Many thanhs
its working with me |
I spent almost a day on this issue. I read this now I solve it. Thank you! |
|
I'm having this same issue. Anyone look into this? |
Thank you so much!! I was stuck on this issue for a week! |
Same issue in react native 0.75.1 |
For React-Native version 0.71, in AppDelegate.mm rootView is no longer here. We need access to the rootView. ` - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions BOOL success = [super application:application didFinishLaunchingWithOptions:launchOptions]; if (success) {
} return success; }` |
its stuck on Splash screen @Huzaifa1911 |
@NikhilCodeblaze, Which version react native you're using? |
@Huzaifa1911 0.75.4 |
Update AppDelegate.h @interface AppDelegate : RCTAppDelegate |
Update AppDelegate.h #import <RCTAppDelegate.h> @interface AppDelegate : RCTAppDelegate |
I am facing same issue on windows platform while using react native version 0.71.7 , can anyone help me what changes i can do to get work on windows platform? |
Run
react-native info
in your project and share the content.What
react-native-splash-screen
version are you using? 3.3.0What platform does your issue occur on? Both
Describe your issue as precisely as possible :
ref : ios Splash screen
Join a screenshot or video of the problem on the simulator or device?

Show us the code you are using?
The text was updated successfully, but these errors were encountered: