bamlab / react-native-make

A collection of everyday React Native CLI tools
MIT License
761 stars 87 forks source link

Splash screen doesn't work on iOS #47

Open njacob1001 opened 3 years ago

njacob1001 commented 3 years ago

I used the command react-native set-splash --path ./splash.png --background #F5861F

but only works in android pretty well, however in iOS only shows a blank black screen, when I inspect with Xcode I can check that the storyboard of splash screen is the default by react-native, and only has the image saved in the folder but is not being used in any place

Juliocbr commented 3 years ago

@njacob1001 Did you follow the steps to add a Splash Screen with xcode that the documentation indicates? (this step is necessary before executing the command to create the splash) I also added a splash for android and ios without problem.

  1. open your file myProject.xcworkspace in XCode
  2. right-click on your project folder > "New file..." > "Launch Screen" > "Save as: SplashScreen"
  3. react-native set-splash --platform ios --path
rahamin1 commented 3 years ago

Same as #46