This repository was archived by the owner on Oct 7, 2021. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ SplashScreen.hide();
1818
1919- Use a ` .png ` to preserve background transparency
2020- ** 3000px** as min height and/or width
21- - For ** cover** splashscreens, preserve a 1/3 padding for important content to avoid clipping a Logo or Text
21+ - For ** cover** splashscreens, preserve a 1/3 padding for important content to avoid clipping a Logo or Text
2222
2323## Resize modes
2424
@@ -32,14 +32,17 @@ We offer 3 types of Splashcreen image resize modes:
3232
3333## Generate both splash screen
3434
35+ - open your file ` myProject.xcworkspace ` in XCode
36+ - right-click on your project folder > "New file..." > "Launch Screen" > "Save as: SplashScreen"
3537- ` react-native set-splash --path <path-to-image> --resize <[contain]|cover|center> --background "<background-color>" `
3638 ⚠️ The path option is mandatory.
3739 The background color defaults to white
3840
3941## Generate iOS splashscreen
4042
41- - ` react-native set-splash --platform ios --path <path-to-image> --resize <[contain]|cover|center> --background ">background-color>" `
42- ⚠️ The path option is mandatory.
43+ - open your file ` myProject.xcworkspace ` in XCode
44+ - right-click on your project folder > "New file..." > "Launch Screen" > "Save as: SplashScreen"
45+ - ` react-native set-splash --platform ios --path <path-to-image> `
4346
4447## Generate Android splashscreen
4548
You can’t perform that action at this time.
0 commit comments