@nativescript-community/systemui
v1.1.25
Published
Provides API for changing the styles of SystemUI (StatusBar, NavigationBar...) on iOS.
Readme
NativeScript System UI
A NativeScript plugin to change System UI.
IOS
To show/hide the statusBar you need to have UIViewControllerBasedStatusBarAppearance set to false in your Info.plist
Usage
npm install @nativescript-community/systemui --saveIf you are using version ^1.0.0 then we now use mixins
import { installMixins } from '@nativescript-community/systemui';
installMixins();Then new properties are added to the Page class
See typings for properties types. (they are added to Page type)
statusBarColor(css propertystatus-bar-color)statusBarStyle(css propertystatus-bar-style)statusBarHidden(css propertystatus-bar-hidden)navigationBarColor(css propertynavigation-bar-color)navigationBarStyleANDROID (css propertynavigation-bar-style)windowBgColorIOS (css propertywindow-bg-color)keepScreenAwake(css propertykeep-screen-awake)screenOrientation(css propertyscreen-orientation)screenBrightness(css propertyscreen-brightness)
Development workflow
If you would like to contribute to this plugin in order to enabled the repositories code for development follow this steps:
- Fork the repository locally
- Open the repository in your favorite terminal
- Navigate to the src code that contains the plugin's code
cd /src - Execute the npm script
nmp run build.wrappersornpm run build.wrappers.watch - When running the Vanila NativeScript demo app execute:
npm run demo.androidornpm run demo.ios - When running the Angular NativeScript demo app execute:
npm run demo.angular.androidornpm run demo.angular.ios
