@expo/configure-splash-screen
This package provides CLI command that helps you configure expo-splash-screen
module.
You can use it to configure your native iOS and Android project according to your needs without opening Xcode or Android Studio.
Content
๐ Features
๐ฑ iOS
๐ค Android
๐ Usage
Command syntax:
yarn run @expo/configure-splash-screen --mode <mode> --platform "all" <backgroundColor> [imagePath]
mode
- see resize modes. Available values: contain
(default), cover
, native
(only on Android)platform
- select which platform to configure. Available values: all
(default), ios
, android
backgroundColor
(required) - Color that will be used a background in splash screen view. Accepts formats from color-string
library (rgb
, rgba
, hex
, css named colors
, hsl
, hsla
).imagePath
(optional) - Path to .png
image that will be used in splash screen view. Not providing an image will make splash screen view display only a background color.
To see all the available options:
yarn run expo-splash-screen --help
๐ฅ Installation
This package is installed as a dependency of the expo-splash-screen
package. Follow the installation instructions provided by expo-splash-screen
package.
๐ Contributing
Contributions are very welcome! Please refer to guidelines described in the contributing guide.