Socket
Book a DemoInstallSign in
Socket

@molecule/status-bar-style

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@molecule/status-bar-style

Allows you to declare the StatusBar style of your Ionic Page

latest
Source
npmnpm
Version
0.3.0
Version published
Maintainers
1
Created
Source

StatusBarStyle

CircleCI Codecov npm (scoped)

The @StatusBarStyle-Decorator automatically adjusts the style of the StatusBar for your page. It uses Ionic Native's StatusBar and applies your requested style when the page will be presented.

@StatusBarStyle('lightContent')
@IonicPage()
@Component({
    templateUrl: './your.page.html'
})
export class YourPage {
    constructor(
        public readonly statusBar: StatusBar
    ) { }
}

Limitations

Currently @StatusBarStyle won't reset the status bar style when a page will leave, so all your pages should declare @StatusBarStyle if the styles differ from page to page.

Additionally the status bar style should not be manipulated manually in order to avoid inconsistencies.

Installation

$ npm install --save @molecule/status-bar-style @ionic-native/core @ionic-native/status-bar
$ ionic plugin add --save cordova-plugin-statusbar

Author

Valentin Knabel, @vknabel, dev@vknabel.com

License

@ionic-decorator/status-bar-style is available under the MIT license.

Keywords

ionic

FAQs

Package last updated on 04 Jan 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts