backgroundColorByName

On iOS 7, when you set StatusBar.statusBarOverlaysWebView to false, you can set the background color of the statusbar by color name.

import { StatusBar } from "@yl/super-jssdk"

StatusBar.backgroundColorByName(optional)

注意事项

1、支持 iOS、Android 5+以上

参数说明

参数 类型 必填 作用
optional Object 选填参数

optional

参数 类型 必填 作用
colorName string 颜色,默认为 white

返回说明

参数 类型 作用
resolve() Function 成功回调
reject(err) Function 失败回调,err为详细错误信息,是一个json对象,例如:{"errCode":-1,"errMsg":"出错啦"}

代码示例

StatusBar.backgroundColorByName()

results matching ""

    No results matching ""