react-native-make
react-native-make copied to clipboard
Blank black screen
I've ran the following;
yarn add -D @bam.tech/react-native-make yarn add react-native-splash-screen cd ios && pod install
I've got an splash screen image;
splashscreen.png
I've ran;
react-native set-splash --path "splashscreen.png" --background "#ffffff" --resize contain
And then added;
import SplashScreen from 'react-native-splash-screen'; SplashScreen.hide();
But when I run the app in the iPhone simulator, all I get is a blank black screen for a second or two and then into the app.
Is there any issues running this in the simulator? Or have I missed a step?
+1
Have you found a solution?
any solutions?
I'm facing the back splash screen issue on Ios 14.4. Ios 13.. seems like is running good.
any solutions?
one solution that worked for me is to create a new storyboard or replace the image in the existing one.
How I did it?
- added a new image to image.xcassets.
- Link that image to the storyboard.
- cleared the current build and made a new build
- Then it worked.
What I did initially is that I removed the image from the storyboard and used background color. Build the app and saw the background screen displaying as launch screen. This way I realized that there is some problem with the image added by this library.