Skip to main content

bn.setNavigationBarColor

setNavigationBarColor(options): Promise<{}>

Dynamically sets the navigation bar color of the current page.

Parameters

NameTypeDescription
optionsSetNavigationBarColorOptionsnavigation bar options

Returns

Promise<{}>

SetNavigationBarColorOptions

Ƭ SetNavigationBarColorOptions: Object

Type declaration

NameTypeDescription
frontColorstringForeground color values, including the color of the on, title, and status bar, are supported only #ffffff and #000000
backgroundColorstringBackground color value, valid value is hexadecimal color
animation{ duration?: number ; timingFunc?: "linear" | "easeIn" | "easeOut" | "easeInOut" }Animation effect
animation.duration?numberAnimation change time, unit ms
animation.timingFunc?"linear" | "easeIn" | "easeOut" | "easeInOut"Animation change mode