I\'m working with a React Native app and I\'m trying to set a customize launch screen but I\'m not able to.
React Native creates a LaunchScreen.xib by default, so I\
I have been looking at these answers a lot in SO containing solutions for how to create a new launch screen. I mean let's think about it for a minute.
When we create a new react-native project what do we see for the launch screen?
> Facebook's default launch screen
So that got me thinking, How did they do it?
They created a
LaunchScreen.xib
I think there must be a reason for this. So I went into theLaunchScreen.xib and made a change to the default text "React Native..." or what ever it said. I ran the app one more time to see that the launch screen reflected my edits.
Solution 1 Edit the existing LaunchScreen.xib
Solution 2 Create my own
So I did, it took me longer to type up this answer than learning how to create my own. Both of these solutions are compatible with all the devices.
Step 1:
Delete LaunchScreen.xib
step 2:
click on images.xcassets
right click in the white space
click **import**then select the image you want to add.
step 3:
Right click on your project's root folder and add a new file of type Launch Screen and name it what ever you want.
step 4
Click on your project in the left nav, go to Settings > General and under App Icons and Launch Images. Make sure Launch Image Source is blank and the Launch Screen File is the same name as your newly created launch screen.
step 5
Click on your brand new file you created in step 2, drag an Image View or edit how ever it pleases you.
Then that's it, you're done. You don't even need to clean the solution, just rebuild.