Package Exports
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@nativescript-community/systemui) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
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