Open Park-SeungWoo opened 3 years ago
Same problem for me
+1
having the same issue on 12 pro max
@crazycodeboy any updates on this?
I found a work-around. Do not use Image Asset in Images.xcassets. Instead add the image you want to show in Splash Screen, directly to project. Then in the properties of Image View, choose the image which you hav added directly to project
Hi everyone, I was having the same issue and I managed to solve it this way:
First, I did what @egealpay says in here:
I found a work-around. Do not use Image Asset in Images.xcassets. Instead add the image you want to show in Splash Screen, directly to project. Then in the properties of Image View, choose the image which you hav added directly to project
But it didn't work right away. Then, based on this: https://developer.apple.com/forums/thread/125102, I renamed the image that I added on the previous step. My file was named SplashScreenLogo.png
and I renamed it to splash-screen-logo.png
. And it worked! 😁 🎉
Hi everyone, I was having the same issue and I managed to solve it this way:
First, I did what @egealpay says in here:
I found a work-around. Do not use Image Asset in Images.xcassets. Instead add the image you want to show in Splash Screen, directly to project. Then in the properties of Image View, choose the image which you hav added directly to project
But it didn't work right away. Then, based on this: https://developer.apple.com/forums/thread/125102, I renamed the image that I added on the previous step. My file was named
SplashScreenLogo.png
and I renamed it tosplash-screen-logo.png
. And it worked! 😁 🎉
This worked for me, thanks! Tested on iOS 14.2, after renaming the file from Splash.png
to splash.png
it worked.
It causes by your SplashScreen i think. It was my case.
Clean your simulator and project
watchman watch-del-all
react-native start --reset-cache
Build a new splashscreen
Run your app again
In my case, I fixed using this: https://www.hackingwithswift.com/example-code/uikit/how-to-fix-the-error-failed-to-instantiate-the-default-view-controller-for-uimainstoryboardfile
This one made the trick for me. Leaving the image for the future in case that link goes down, after the upgrade of React Native version I created a new LaunchScreen.storyboard. There's an option Is Initial View Controller
that was not set by default
In order to find it, I had to select "View Controller"
and in the right panel, pick "Show the attributes inspector". There, below the "Title" input, you can find the input
After checking it, it started to work
thanks it work for me.
Recently I faced the same issue. I tried everything discussed in the above. But nothing worked for me. Then I checked splash screen image size. It was almost 5 MB. So I reduced it and replaced it. Then the splash screen was showing.
Sometimes it works on ios14 but many time it doesn’t work just show up black screen. Does anyone had this issue?