Skip to content
This repository was archived by the owner on Oct 7, 2021. It is now read-only.

Commit 286db62

Browse files
committed
add doc for creating ios splashscreen
1 parent 42baf66 commit 286db62

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

docs/set-splash.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)