Set navigation bar color for android lolipop and higher
npm install @capgo/capacitor-navigation-bar
npx cap sync
example
: Default Capacitor starter project kept for quick scaffolding tests.example-app
: Interactive showcase that exercises all plugin options (color presets, custom hex, dark buttons, state reading).
- In Xcode, choose File → Add Packages…
- Enter
https://github.com/Cap-go/capacitor-navigation-bar.git
- Select the
CapgoCapacitorNavigationBar
product and choose the app target that should link it.
- In your app's
Podfile
, addpod 'CapgoCapacitorNavigationBar', :path => '../node_modules/@capgo/capacitor-navigation-bar'
inside the Capacitor target. - Run
pod install
.
setNavigationBarColor(options: { color: NavigationBarColor | string; darkButtons?: boolean; }) => Promise<void>
Param | Type |
---|---|
options |
{ color: string; darkButtons?: boolean; } |
getNavigationBarColor() => Promise<{ color: string; darkButtons: boolean; }>
Returns: Promise<{ color: string; darkButtons: boolean; }>
Members | Value |
---|---|
WHITE |
'#FFFFFF' |
BLACK |
'#000000' |
TRANSPARENT |
'transparent' |