@ expo/ 配置- splash- 屏幕
此软件包提供了帮助您配置的 CLI 命令 expo-splash-screen 模块.
您可以在不打开Xcode或Android Studio的情况下,根据您的需要来配置本地的iOS和Android项目.
内容
* 特性
iOS系统
- 配置本地飞溅屏幕的背景颜色.
- 配置
expo-splash-screen显示.png图像. - 支助
CONTAIN财务报告和审定财务报表COVER模式从expo-splash-screen。 。 。 . - 配置
StatusBar属性 :hiding, (中文(简体) ),style。 。 。 .
- 支持用于暗模式的SplashScreenView单独配置.
安卓尔
- 配置本地飞溅屏幕的背景颜色.
- 配置
expo-splash-screen显示.png图像. - 支助
CONTAIN, (中文(简体) ),COVER财务报告和审定财务报表NATIVE模式从expo-splash-screen。 。 。 . - 配置
StatusBar属性 :hiding, (中文(简体) ),style, (中文(简体) ),backgroundColor, (中文(简体) ),translucency。 。 。 .
- 支持用于暗模式的SplashScreenView单独配置.
使用量
命令语法 :
yarn run configure-splash-screen [options]
选项 :
-p, --platform <platform>- 要配置的选定平台。 可用值:"android""ios""所有"(默认:"all").-b, --background-color <color>- (需要)有效的 cs 格式化颜色(hex (# RRGGB[AA])), rgb[a], hsl[a], 命名为颜色(https://drafts.csswg.org/css-color/#取名-colors (中文(简体) )),它将作为本土喷出屏幕视图的背景颜色.-i, --image-path <path>- 将显示在溅射屏幕上的有效.png图像的路径.-r, --image-resize-mode <resizeMode>- 调整用于喷出屏幕图像的大小模式。 只有在提供“图像-路径”时才能使用。 可用值:"Contain""cover""native"("native"只为Android提供)(默认:"Contain"). 见 调整模式大小 更多信息.--dark-mode-background-color <color>- 颜色(参见“ 背景- 颜色” 支持的格式) , 用作暗模式下溅射屏幕的背景颜色 。 提供此选项可以实现其他与暗模式相关的选项.--dark-mode-image-path <path>- 仅以暗模式显示在溅射屏幕上的有效.png图像的路径。 只有在提供“ 暗地- 暗地- 颜色” 时才可用 .--status-bar-style <style>- 自定义状态栏图标的颜色。 可用值:"default" QQ"light-content" QQ"dark-content"(默认:"default").--status-bar-hidden- 隐藏状态栏.--status-bar-background-color <color>-(仅用于Android平台)自定义状态栏的背景颜色. 接受有效的颜色( 参见“ 背景- 颜色” 支持的格式) .--status-bar-translucent- (仅供Android平台使用) 使状态栏半透明(在状态栏区域下绘图的可操作性).--dark-mode-status-bar-style <style>- (仅供Android平台使用) 与"status-bar-tyle"相同,但只在暗模式下应用. 只有在提供“ 暗- 模式- 背景- 颜色” 和“ 状态栏样式” 时才可用 .--dark-mode-status-bar-background-color <color>- (仅供Android平台使用) 与 “ status- bar- background- color” 相同, 但只在暗模式下应用 。 只有在提供“ 暗- 模式- 背景- 颜色” 和“ 状态栏样式” 时才可用 .
查看所有可用的选项 :
yarn run expo-splash-screen --help
* 安装
此软件包是安装于 expo-splash-screen 软件包。 遵循由 expo-splash-screen 软件包.
捐款
贡献是非常受欢迎的! 请参阅本报告所述准则 贡献指南。 。 。 .